Fix supply drops sometimes dropping beacons if players click too fast

This commit is contained in:
AlexTheCoder 2017-09-24 18:38:49 -04:00
parent 99faf8bdd9
commit 1cdd6c0316

View File

@ -102,6 +102,10 @@ public class SupplyDropManager extends MiniPlugin
{ {
return; return;
} }
if (event.getClickedBlock().getType() != Material.CHEST)
{
return;
}
if (new BlockPosition(event.getClickedBlock()).equals(_active.getPosition())) if (new BlockPosition(event.getClickedBlock()).equals(_active.getPosition()))
{ {
event.setCancelled(true); event.setCancelled(true);