Overhauled Loot #114

Merged
SenseiKiwi merged 6 commits from 1.6-fixes into 1.6.2-code 2013-12-22 22:44:14 +00:00
Showing only changes of commit 13458029b4 - Show all commits

View File

@@ -191,7 +191,14 @@ public class DungeonPack
return getRandomDungeon(random, candidates); return getRandomDungeon(random, candidates);
} }
//If we've reached this point, then a dungeon was not selected. Discard the type and try again. //If we've reached this point, then a dungeon was not selected. Discard the type and try again.
products.remove(nextType); for (index = 0; index < products.size(); index++)
{
if (products.get(index).getData().equals(nextType))
{
products.remove(index);
break;
}
}
} }
} }
while (nextType != null); while (nextType != null);