PC-47 - Remove item drops from tutorial cannon hit

This commit is contained in:
Ben 2016-03-31 01:08:01 +01:00
parent 0fd39e1300
commit 622843ca8e
1 changed files with 1 additions and 3 deletions

View File

@ -87,9 +87,7 @@ public class BlowUpWallGoal extends ObjectiveGoal<AttackEnemyObjective>
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);