Made placement of pumps consistent across different placements. (#292)
This commit is contained in:
@@ -64,15 +64,11 @@ public class Pump extends LiquidBlock{
|
|||||||
if(isMultiblock()){
|
if(isMultiblock()){
|
||||||
Liquid last = null;
|
Liquid last = null;
|
||||||
for(Tile other : tile.getLinkedTilesAs(this, drawTiles)){
|
for(Tile other : tile.getLinkedTilesAs(this, drawTiles)){
|
||||||
if(other == null) return false;
|
if(other.floor().liquidDrop == null)
|
||||||
//can't place pump on block with multiple liquids
|
continue;
|
||||||
if(last != null && other.floor().liquidDrop != last){
|
if(other.floor().liquidDrop != last && last != null)
|
||||||
return false;
|
return false;
|
||||||
}
|
last = other.floor().liquidDrop;
|
||||||
|
|
||||||
if(isValid(other)){
|
|
||||||
last = other.floor().liquidDrop;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return last != null;
|
return last != null;
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
Reference in New Issue
Block a user