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

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) if (Math.random() < 0.2 + (dist.doubleValue() / 2.55) || dist.doubleValue() < 1.75)
{ {
BlockState state = block.getState(); block.setType(Material.AIR, false);
state.setType(Material.AIR);
state.update(true, false);
if (block.getType() != Material.IRON_DOOR_BLOCK && block.getType().name().endsWith("BANNER")) if (block.getType() != Material.IRON_DOOR_BLOCK && block.getType().name().endsWith("BANNER"))
FallingBlocks.Instance.Spawn(block.getLocation(), block.getType(), block.getData(), center); FallingBlocks.Instance.Spawn(block.getLocation(), block.getType(), block.getData(), center);