mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-11-11 13:04:05 +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
|
// Check if can be used
|
||||||
ITextComponent msg = validateUsage(item);
|
ITextComponent msg = validateUsage(item);
|
||||||
if (msg != null) {
|
if (msg != StringTextComponent.EMPTY) {
|
||||||
world.playSound(player, player.getBlockPos(), AllSoundEvents.BLOCKZAPPER_DENY.get(), SoundCategory.BLOCKS,
|
world.playSound(player, player.getBlockPos(), AllSoundEvents.BLOCKZAPPER_DENY.get(), SoundCategory.BLOCKS,
|
||||||
1f, 0.5f);
|
1f, 0.5f);
|
||||||
player.sendStatusMessage(msg.copy().formatted(TextFormatting.RED), true);
|
player.sendStatusMessage(msg.copy().formatted(TextFormatting.RED), true);
|
||||||
|
Loading…
Reference in New Issue
Block a user