Fixed save crash

This commit is contained in:
Anuken
2017-09-25 19:48:24 -04:00
parent 9f3d7be7b4
commit ce75be6204
10 changed files with 36 additions and 14 deletions

View File

@@ -126,6 +126,12 @@ public class Renderer extends RendererModule{
//render the entire map
if(floorCache == null || floorCache.length != chunksx || floorCache[0].length != chunksy){
floorCache = new Cache[chunksx][chunksy];
for(int x = 0; x < chunksx; x ++){
for(int y = 0; y < chunksy; y ++){
renderCache(x, y);
}
}
}
OrthographicCamera camera = Core.camera;