v2.5.3: fixed one more rare levelgen freeze with cave rooms
This commit is contained in:
+3
@@ -78,6 +78,9 @@ public class MineEntrance extends CaveRoom {
|
|||||||
valid = true;
|
valid = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (height() == 7 && width() == 7){
|
||||||
|
valid = true;
|
||||||
|
}
|
||||||
} while (level.findMob(entrance) != null || !valid);
|
} while (level.findMob(entrance) != null || !valid);
|
||||||
Painter.set( level, entrance, Terrain.ENTRANCE );
|
Painter.set( level, entrance, Terrain.ENTRANCE );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user