Fixed bug with tile cache not updating after map change
This commit is contained in:
@@ -33,7 +33,6 @@ public class Renderer{
|
||||
|
||||
//render the entire map
|
||||
if(caches.size() == 0){
|
||||
|
||||
for(int cx = 0; cx < chunksx; cx ++){
|
||||
for(int cy = 0; cy < chunksy; cy ++){
|
||||
Caches.begin(1600);
|
||||
@@ -102,6 +101,13 @@ public class Renderer{
|
||||
}
|
||||
}
|
||||
|
||||
public static void clearTiles(){
|
||||
for(Cache cache : caches.values())
|
||||
cache.dispose();
|
||||
|
||||
caches.clear();
|
||||
}
|
||||
|
||||
public static void renderPixelOverlay(){
|
||||
|
||||
if(player.recipe != null && (!ui.hasMouse() || android)){
|
||||
|
||||
Reference in New Issue
Block a user