Fix TNTSimulator still shown after removing from inventory
Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
Ursprung
56f7fddb0e
Commit
ecc24470f6
@ -54,6 +54,8 @@ public class TNTSimulatorListener implements Listener {
|
||||
public void onPlayerMove(PlayerMoveEvent e) {
|
||||
if (ItemUtils.isItem(e.getPlayer().getInventory().getItemInMainHand(), "simulator")) {
|
||||
simulatorShowHide(e.getPlayer(), i -> null, PlayerInventory::getItemInMainHand, e.getTo());
|
||||
} else {
|
||||
simulatorShowHide(e.getPlayer(), i -> null, i -> null, e.getTo());
|
||||
}
|
||||
}
|
||||
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren