Fixed water animation conflict

This commit is contained in:
Anuken
2020-04-23 15:08:32 -04:00
parent 87ed405916
commit cafd076f9c
5 changed files with 15 additions and 12 deletions

View File

@@ -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(){

View File

@@ -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

View File

@@ -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);