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
1 changed files with 4 additions and 0 deletions

View File

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