From 1ed27e72a690541c47acbe7698e45518714dc85c Mon Sep 17 00:00:00 2001 From: Thanos Paravantis Date: Fri, 10 Jun 2016 16:08:06 +0300 Subject: [PATCH] Use resetBlock method to set air blocks --- .../games/mineware/challenge/type/ChallengeBouncingBlock.java | 4 ++-- .../games/mineware/challenge/type/ChallengeBuildRace.java | 2 +- .../games/mineware/challenge/type/ChallengeCloudFall.java | 2 +- .../games/mineware/challenge/type/ChallengeColorChange.java | 2 +- .../games/mineware/challenge/type/ChallengeFallingBlocks.java | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeBouncingBlock.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeBouncingBlock.java index 202e1d893..6a91904a6 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeBouncingBlock.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeBouncingBlock.java @@ -111,9 +111,9 @@ public class ChallengeBouncingBlock extends Challenge implements LogicTracker { Host.StrictAntiHack = true; - for (Block woolBlocks : _blocks) + for (Block woolBlock : _blocks) { - setBlock(woolBlocks, Material.AIR, (byte) 0); + resetBlock(woolBlock); } } diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeBuildRace.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeBuildRace.java index 4be0263e1..d5b3a766c 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeBuildRace.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeBuildRace.java @@ -224,7 +224,7 @@ public class ChallengeBuildRace extends Challenge implements LogicTracker { UtilParticle.PlayParticle(ParticleType.BLOCK_DUST.getParticle(block.getType(), block.getData()), block.getLocation(), 0.0F, 0.0F, 0.0F, 0, 10, ViewDist.NORMAL, UtilServer.getPlayers()); block.getWorld().playEffect(block.getLocation(), Effect.STEP_SOUND, block.getTypeId()); - setBlock(block, Material.AIR, (byte) 0); + resetBlock(block); } @Override diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeCloudFall.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeCloudFall.java index 167781b24..6e5e2b95e 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeCloudFall.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeCloudFall.java @@ -190,7 +190,7 @@ public class ChallengeCloudFall extends Challenge for (Location location : UtilShapes.getCircle(platform, false, (int) getArenaSize() / 2)) { - setBlock(location.getBlock(), Material.AIR, (byte) 0); + resetBlock(location.getBlock()); } } diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeColorChange.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeColorChange.java index 46394076e..ddd9df1e7 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeColorChange.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeColorChange.java @@ -216,7 +216,7 @@ public class ChallengeColorChange extends Challenge if (block.getData() != _currentColor) { - setBlock(block, Material.AIR, (byte) 0); + resetBlock(block); addBlock(block); } } diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeFallingBlocks.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeFallingBlocks.java index cc5506b3f..b5ba253b1 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeFallingBlocks.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeFallingBlocks.java @@ -163,7 +163,7 @@ public class ChallengeFallingBlocks extends Challenge implements NumberTracker for (Block block : _remaining) { - setBlock(block, Material.AIR, (byte) 0); + resetBlock(block); } _remaining.clear(); @@ -217,7 +217,7 @@ public class ChallengeFallingBlocks extends Challenge implements NumberTracker UtilParticle.PlayParticle(ParticleType.BLOCK_CRACK.getParticle(block.getType(), 0), block.getLocation(), 0.3F, 0.3F, 0.3F, 0.0F, 3, ViewDist.LONG, UtilServer.getPlayers()); - setBlock(block, Material.AIR, (byte) 0); + resetBlock(block); _remaining.remove(block); } }.runTaskLater(Host.getArcadeManager().getPlugin(), 40L);