From 622843ca8ef8b0fd3b53387206e84819070a45df Mon Sep 17 00:00:00 2001 From: Ben Date: Thu, 31 Mar 2016 01:08:01 +0100 Subject: [PATCH] PC-47 - Remove item drops from tutorial cannon hit --- .../clans/objective/goals/attackenemy/BlowUpWallGoal.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/tutorial/tutorials/clans/objective/goals/attackenemy/BlowUpWallGoal.java b/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/tutorial/tutorials/clans/objective/goals/attackenemy/BlowUpWallGoal.java index 082b7f0ee..a06ea7361 100644 --- a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/tutorial/tutorials/clans/objective/goals/attackenemy/BlowUpWallGoal.java +++ b/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/tutorial/tutorials/clans/objective/goals/attackenemy/BlowUpWallGoal.java @@ -87,9 +87,7 @@ public class BlowUpWallGoal extends ObjectiveGoal if (Math.random() < 0.2 + (dist.doubleValue() / 2.55) || dist.doubleValue() < 1.75) { - BlockState state = block.getState(); - state.setType(Material.AIR); - state.update(true, false); + block.setType(Material.AIR, false); if (block.getType() != Material.IRON_DOOR_BLOCK && block.getType().name().endsWith("BANNER")) FallingBlocks.Instance.Spawn(block.getLocation(), block.getType(), block.getData(), center);