Fix item gadgets appearing in places they shouldn't
This commit is contained in:
parent
fea8822780
commit
44a1aad68b
@ -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(() ->
|
||||
|
Loading…
Reference in New Issue
Block a user