Fixed under-liquid overlays remaining when painted over
This commit is contained in:
@@ -13,6 +13,7 @@ import mindustry.gen.*;
|
|||||||
import mindustry.io.*;
|
import mindustry.io.*;
|
||||||
import mindustry.maps.*;
|
import mindustry.maps.*;
|
||||||
import mindustry.world.*;
|
import mindustry.world.*;
|
||||||
|
import mindustry.world.blocks.environment.*;
|
||||||
|
|
||||||
import static mindustry.Vars.*;
|
import static mindustry.Vars.*;
|
||||||
|
|
||||||
@@ -177,6 +178,9 @@ public class MapEditor{
|
|||||||
}else{
|
}else{
|
||||||
if(!(drawBlock.asFloor().wallOre && !tile.block().solid)){
|
if(!(drawBlock.asFloor().wallOre && !tile.block().solid)){
|
||||||
tile.setFloor(drawBlock.asFloor());
|
tile.setFloor(drawBlock.asFloor());
|
||||||
|
if(!(tile.overlay() instanceof OverlayFloor) && !drawBlock.asFloor().supportsOverlay){
|
||||||
|
tile.setOverlay(Blocks.air);
|
||||||
|
}
|
||||||
changed = true;
|
changed = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user