From e86754efcb9e933c4d5c4f5e872470c6ad32ab53 Mon Sep 17 00:00:00 2001 From: BuildTools Date: Sat, 22 Oct 2016 21:10:26 -0400 Subject: [PATCH] removing commented-out for loop --- src/alisolarflare/RandomTPModule.java | 32 --------------------------- 1 file changed, 32 deletions(-) diff --git a/src/alisolarflare/RandomTPModule.java b/src/alisolarflare/RandomTPModule.java index 77da768..fca4de7 100644 --- a/src/alisolarflare/RandomTPModule.java +++ b/src/alisolarflare/RandomTPModule.java @@ -83,38 +83,6 @@ public class RandomTPModule{ if(!eastUsed) directions.add("east"); dir = directions.get((int) Math.floor(Math.random() * directions.size())); - /* - for(int i = 0; i < 1000; i++){ - double randomDirection = Math.random(); - if (randomDirection < 0.25){ - if(!northUsed){ - northUsed = true; - dir = "north"; - break; - } - }else if(randomDirection < 0.50){ - if(!eastUsed){ - eastUsed = true; - dir = "east"; - break; - } - }else if(randomDirection < 0.75){ - if(!southUsed){ - southUsed = true; - dir = "south"; - break; - } - }else{ - if(!westUsed){ - westUsed = true; - dir = "west"; - break; - } - - } - }*/ - - //TELEPORT - teleports player to the conflict point switch(dir){ case "north":