Fixed editor crash
This commit is contained in:
@@ -39,7 +39,7 @@ public class MapEditor{
|
||||
|
||||
loading = true;
|
||||
createTiles(width, height);
|
||||
renderer.resize(width(), height());
|
||||
renderer.resize(width, height);
|
||||
loading = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -37,6 +37,8 @@ public class MapRenderer implements Disposable{
|
||||
}
|
||||
|
||||
public void resize(int width, int height){
|
||||
updates.clear();
|
||||
delayedUpdates.clear();
|
||||
if(chunks != null){
|
||||
for(int x = 0; x < chunks.length; x++){
|
||||
for(int y = 0; y < chunks[0].length; y++){
|
||||
|
||||
Reference in New Issue
Block a user