sapling fix

This commit is contained in:
NewGarbo 2016-01-29 20:56:38 +00:00
parent 7860ca24c8
commit d10266c4d1

View File

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