Created
October 2, 2011 14:52
-
-
Save Flow86/1257515 to your computer and use it in GitHub Desktop.
pump from slots to result if current recipe's result is in source slots
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/buildcraft/common/net/minecraft/src/buildcraft/factory/TileRefinery.java b/buildcraft/common/net/minecraft/src/buildcraft/factory/TileRefinery.java | |
index f4c2d75..ea585b6 100755 | |
--- a/buildcraft/common/net/minecraft/src/buildcraft/factory/TileRefinery.java | |
+++ b/buildcraft/common/net/minecraft/src/buildcraft/factory/TileRefinery.java | |
@@ -223,7 +223,12 @@ public class TileRefinery extends TileMachine implements ILiquidContainer, | |
decreaseAnimation(); | |
return; | |
} | |
- | |
+ | |
+ if(result.liquidId == slot1.liquidId) | |
+ slot1.quantity -= result.fill(Orientations.Unknown, slot1.quantity, slot1.liquidId, true); | |
+ if(result.liquidId == slot2.liquidId) | |
+ slot2.quantity -= result.fill(Orientations.Unknown, slot2.quantity, slot2.liquidId, true); | |
+ | |
isActive = true; | |
if (powerProvider.energyStored >= currentRecipe.energy) { | |
@@ -269,6 +274,7 @@ public class TileRefinery extends TileMachine implements ILiquidContainer, | |
recipes.add(r); | |
} | |
+ @Override | |
public void readFromNBT(NBTTagCompound nbttagcompound) { | |
super.readFromNBT(nbttagcompound); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment