sapling fix

This commit is contained in:
NewGarbo 2016-01-29 20:56:38 +00:00
parent 7860ca24c8
commit d10266c4d1
1 changed files with 2 additions and 2 deletions

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;
} }