Fixed pump crash
This commit is contained in:
@@ -64,6 +64,7 @@ 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;
|
||||||
//can't place pump on block with multiple liquids
|
//can't place pump on block with multiple liquids
|
||||||
if(last != null && other.floor().liquidDrop != last){
|
if(last != null && other.floor().liquidDrop != last){
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user