From 88c1391ba25ff0d5e0df698e8749b56edb4b5c46 Mon Sep 17 00:00:00 2001 From: NewGarbo Date: Thu, 28 Jan 2016 13:30:16 +0000 Subject: [PATCH] disallow sapling in dispensers (grrr working in two different branches is really strange) --- .../src/mineplex/game/clans/gameplay/Gameplay.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/gameplay/Gameplay.java b/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/gameplay/Gameplay.java index 9adfac39d..a3e92ee3b 100644 --- a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/gameplay/Gameplay.java +++ b/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/gameplay/Gameplay.java @@ -514,6 +514,11 @@ public class Gameplay extends MiniPlugin event.setCancelled(true); } + if (event.getItem().getType() == Material.SAPLING) + { + event.setCancelled(true); + } + if (event.getItem().getType() == Material.TNT) { event.setCancelled(true);