v1.1.0: actually properly fixed rare crashes with special room spawning
This commit is contained in:
parent
b1b887f264
commit
2ed7252be7
|
@ -165,7 +165,7 @@ public abstract class SpecialRoom extends Room {
|
|||
|
||||
//60% chance for front of queue, 30% chance for next, 10% for one after that
|
||||
int index = Random.chances(new float[]{6, 3, 1});
|
||||
while (index > floorSpecials.size()) index--;
|
||||
while (index >= floorSpecials.size()) index--;
|
||||
|
||||
Room r = Reflection.newInstance(floorSpecials.get( index ));
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user