From 9fe57e9cbc8387e437c74b092c8fed482d08c3a2 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Mon, 18 Jul 2022 16:44:44 +0200 Subject: [PATCH] Fix offhand simulator --- .../bausystem/features/simulator/TNTSimulatorListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/simulator/TNTSimulatorListener.java b/BauSystem_Main/src/de/steamwar/bausystem/features/simulator/TNTSimulatorListener.java index 912e46fe..f464063b 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/simulator/TNTSimulatorListener.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/simulator/TNTSimulatorListener.java @@ -95,7 +95,7 @@ public class TNTSimulatorListener implements Listener { @EventHandler public void onPlayerMove(PlayerMoveEvent e) { - if (!ItemUtils.isItem(e.getPlayer().getInventory().getItemInMainHand(), "simulator")) { + if (ItemUtils.isItem(e.getPlayer().getInventory().getItemInMainHand(), "simulator")) { simulatorShowHide(e.getPlayer(), i -> null, PlayerInventory::getItemInMainHand, e.getTo()); } else { simulatorShowHide(e.getPlayer(), i -> null, PlayerInventory::getItemInOffHand, e.getTo());