Fixed rendering of liquids under floors

This commit is contained in:
Anuken
2025-07-27 23:52:19 -04:00
parent 479a84ba32
commit 0a2d8576fd
2 changed files with 33 additions and 17 deletions

View File

@@ -10,6 +10,7 @@ import mindustry.content.*;
import mindustry.game.*;
import mindustry.gen.*;
import mindustry.world.*;
import mindustry.world.blocks.environment.*;
import static mindustry.Vars.*;
@@ -67,7 +68,7 @@ public enum EditorTool{
}else if(mode == 2){
//draw teams
editor.drawCircle(x, y, tile -> tile.setTeam(editor.drawTeam));
}else if(mode == 3){
}else if(mode == 3 && !(editor.drawBlock instanceof Floor f && f.isLiquid)){
editor.drawBlocks(x, y, false, true, tile -> tile.floor().isLiquid);
}