sapling fix [THIS NEEDS TO GET PUT ONTO CLANS/ALPHA]

This commit is contained in:
NewGarbo 2016-01-29 20:54:31 +00:00
parent f86262dc0e
commit 76dba421b4

View File

@ -446,10 +446,10 @@ public class Gameplay extends MiniPlugin
event.setCancelled(true);
}
@EventHandler(priority = EventPriority.LOWEST)
@EventHandler(priority = EventPriority.HIGHEST)
public void disableSaplings(BlockPlaceEvent event)
{
if (!event.getBlockReplacedState().getType().equals(Material.SAPLING))
if (!event.getItemInHand().getType().equals(Material.SAPLING))
{
return;
}