Finally fixed spawn bug. Still no idea why it was happening though

Signed-off-by: StevenRS11 <stevenrs11@aol.com>
This commit is contained in:
StevenRS11
2013-04-01 03:15:16 -04:00
parent f02410f5da
commit f9c1e41677
17 changed files with 112 additions and 117 deletions

View File

@@ -80,15 +80,14 @@ public class ChaosDoor extends dimDoor
int i=0;
int size = dimHelper.instance.linksForRendering.size();
Random rand= new Random();
while (!foundRandomDest&&size>0&&i<100)
while (!foundRandomDest&&i<100)
{
i++;
LinkData link = (LinkData) dimHelper.instance.linksForRendering.get(rand.nextInt(size));
LinkData link = (LinkData) dimHelper.instance.getRandomLinkData(false);
if(link!=null)
{