Merge pull request #132 from CovertJaguar/patch-5

Added Iron Eng support for container.amount != 1000
This commit is contained in:
SirSengir 2012-07-26 10:31:12 -07:00
commit 5402464c8d

View file

@ -130,7 +130,7 @@ public class EngineIron extends Engine {
LiquidStack liquid = LiquidManager.getLiquidForFilledItem(itemInInventory);
if (liquid != null) {
if (fill(Orientations.Unknown, liquid, false) == BuildCraftAPI.BUCKET_VOLUME) {
if (fill(Orientations.Unknown, liquid, false) == liquid.amount) {
fill(Orientations.Unknown, liquid, true);
tile.setInventorySlotContents(0, Utils.consumeItem(itemInInventory));
}