mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-10 20:45:10 +01:00
Fix zapper not working (StringTextComponent.EMPTY != null)
This commit is contained in:
parent
b9476b58ce
commit
482e02e5d3
@ -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 New Issue
Block a user