Fix item gadgets appearing in places they shouldn't

This commit is contained in:
Sam 2017-11-02 13:33:17 +00:00 committed by Alexander Meech
parent fea8822780
commit 44a1aad68b

View File

@ -83,8 +83,10 @@ public abstract class ItemGadget extends Gadget
@EventHandler
public void orderThatChest(PlayerDropItemEvent event)
{
if (isActive(event.getPlayer()) && event.getItemDrop().getItemStack().getType() == getDisplayMaterial() || !_preserveStaticItem)
if (isActive(event.getPlayer()) && event.getItemDrop().getItemStack().getType() == getDisplayMaterial() && !_preserveStaticItem)
{
event.setCancelled(true);
final Player player = event.getPlayer();
Manager.runSyncLater(() ->