Skip to content

Commit

Permalink
Fix comparator on drain crashing the game for invalid smelteries #1350
Browse files Browse the repository at this point in the history
  • Loading branch information
bonii-xx committed Jan 18, 2015
1 parent cd4206d commit f7525b6
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -190,6 +190,8 @@ public int comparatorStrength ()
if(master == null)
return 0;
SmelteryLogic smeltery = (SmelteryLogic) worldObj.getTileEntity(master.x, master.y, master.z);
if(smeltery.maxLiquid == 0)
return 0;
return 15 * smeltery.currentLiquid / smeltery.maxLiquid;
}
}

0 comments on commit f7525b6

Please sign in to comment.