From 482e02e5d32b99c9ea87234c419e3e5e4ff43837 Mon Sep 17 00:00:00 2001 From: grimmauld Date: Wed, 7 Oct 2020 12:21:48 +0200 Subject: [PATCH] Fix zapper not working (StringTextComponent.EMPTY != null) --- .../simibubi/create/content/curiosities/zapper/ZapperItem.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/simibubi/create/content/curiosities/zapper/ZapperItem.java b/src/main/java/com/simibubi/create/content/curiosities/zapper/ZapperItem.java index 5bba1ec8c..298a474ed 100644 --- a/src/main/java/com/simibubi/create/content/curiosities/zapper/ZapperItem.java +++ b/src/main/java/com/simibubi/create/content/curiosities/zapper/ZapperItem.java @@ -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);