Fixed pump crash

This commit is contained in:
Anuken
2018-10-20 14:09:00 -04:00
parent 85cde62039
commit 0555fb22ca

View File

@@ -64,6 +64,7 @@ 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){
return false;