From 0da921f3d2d29040332eb67a82161d45f515c52d Mon Sep 17 00:00:00 2001 From: Virizion <9b717b9d4e5f09e89fa3@gmail.com> Date: Thu, 21 Jan 2016 23:52:59 -0500 Subject: [PATCH] Removed debug thing. --- .../game/games/speedbuilder/SpeedBuilder.java | 25 +------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/speedbuilder/SpeedBuilder.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/speedbuilder/SpeedBuilder.java index fa47f50b2..0aee0ae69 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/speedbuilder/SpeedBuilder.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/speedbuilder/SpeedBuilder.java @@ -441,13 +441,7 @@ public class SpeedBuilder extends SoloGame return; } - //_currentBuild = UtilAlg.Random(_buildData); - - do - { - _currentBuild = UtilAlg.Random(_buildData); - } - while (!hasRails(_currentBuild)); + _currentBuild = UtilAlg.Random(_buildData); HashSet usedBuildLocs = new HashSet(); @@ -485,23 +479,6 @@ public class SpeedBuilder extends SoloGame setSpeedBuilderState(SpeedBuilderState.VIEWING); } - public boolean hasRails(BuildData buildData) - { - for (int x = 0; x < BuildSize; x++) - { - for (int y = 0; y < BuildSize; y++) - { - for (int z = 0; z < BuildSize; z++) - { - if (buildData.Build[x][y][z].getType() == Material.RAILS) - return true; - } - } - } - - return false; - } - @EventHandler public void onEnd(GameStateChangeEvent event) {