mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-29 00:16:27 +01:00
Fix zapper not working (StringTextComponent.EMPTY != null)
This commit is contained in:
parent
b9476b58ce
commit
482e02e5d3
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ public abstract class ZapperItem extends Item {
|
|||
|
||||
// Check if can be used
|
||||
ITextComponent msg = validateUsage(item);
|
||||
if (msg != null) {
|
||||
if (msg != StringTextComponent.EMPTY) {
|
||||
world.playSound(player, player.getBlockPos(), AllSoundEvents.BLOCKZAPPER_DENY.get(), SoundCategory.BLOCKS,
|
||||
1f, 0.5f);
|
||||
player.sendStatusMessage(msg.copy().formatted(TextFormatting.RED), true);
|
||||
|
|
Loading…
Reference in a new issue