Fixed water animation conflict
This commit is contained in:
@@ -8,7 +8,6 @@ import arc.graphics.gl.*;
|
||||
import static mindustry.Vars.renderer;
|
||||
|
||||
public enum CacheLayer{
|
||||
//TODO water animation breaks when tar/slag is present
|
||||
water{
|
||||
@Override
|
||||
public void begin(){
|
||||
|
||||
@@ -23,7 +23,7 @@ public class Layer{
|
||||
//things drawn over blocks (intermediate layer)
|
||||
blockOver = 35,
|
||||
|
||||
//blocks currently in progress *shaders used* TODO perhaps put shaders into their own category
|
||||
//blocks currently in progress *shaders used*
|
||||
blockBuilding = 40,
|
||||
|
||||
//ground units
|
||||
|
||||
@@ -135,6 +135,8 @@ public class MinimapRenderer implements Disposable{
|
||||
}
|
||||
|
||||
public void update(Tile tile){
|
||||
if(world.isGenerating()) return;
|
||||
|
||||
int color = colorFor(world.tile(tile.x, tile.y));
|
||||
pixmap.draw(tile.x, pixmap.getHeight() - 1 - tile.y, color);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user