mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-25 22:58:47 +07:00
Made placement of pumps consistent across different placements. (#292)
This commit is contained in:
parent
f0e3a3a30c
commit
8e70568e32
@ -64,15 +64,11 @@ public class Pump extends LiquidBlock{
|
||||
if(isMultiblock()){
|
||||
Liquid last = null;
|
||||
for(Tile other : tile.getLinkedTilesAs(this, drawTiles)){
|
||||
if(other == null) return false;
|
||||
//can't place pump on block with multiple liquids
|
||||
if(last != null && other.floor().liquidDrop != last){
|
||||
if(other.floor().liquidDrop == null)
|
||||
continue;
|
||||
if(other.floor().liquidDrop != last && last != null)
|
||||
return false;
|
||||
}
|
||||
|
||||
if(isValid(other)){
|
||||
last = other.floor().liquidDrop;
|
||||
}
|
||||
last = other.floor().liquidDrop;
|
||||
}
|
||||
return last != null;
|
||||
}else{
|
||||
|
Loading…
Reference in New Issue
Block a user