Crash fixes
This commit is contained in:
@@ -72,8 +72,7 @@ public class MapRenderer implements Disposable{
|
|||||||
IndexedRenderer mesh = chunks[x][y];
|
IndexedRenderer mesh = chunks[x][y];
|
||||||
|
|
||||||
if(mesh == null){
|
if(mesh == null){
|
||||||
chunks[x][y] = new IndexedRenderer(chunksize * chunksize * 2);
|
continue;
|
||||||
mesh = chunks[x][y];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
mesh.getTransformMatrix().setToTranslation(tx, ty).scale(tw / (width * tilesize), th / (height * tilesize));
|
mesh.getTransformMatrix().setToTranslation(tx, ty).scale(tw / (width * tilesize), th / (height * tilesize));
|
||||||
|
|||||||
Reference in New Issue
Block a user