mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-27 23:33:00 +00:00
Fix pipette filling bug
This commit is contained in:
1 parent
85ba33e1ff
commit
9284f84645
4 files changed
+5
-6
No files matched your search
@@ -49,7 +49,7 @@ import forestry.plugins.PluginManager;
|
||||
name = "Forestry",
|
||||
version = Constants.VERSION,
|
||||
guiFactory = "forestry.core.config.ForestryGuiConfigFactory",
|
||||
dependencies = "required-after:Forge@[12.17.0.1949,);"
|
||||
dependencies = "required-after:Forge@[12.17.0.1963,);"
|
||||
+ "after:Buildcraft|Core@[7.2,);"
|
||||
+ "after:BuildCraft|Energy@[7.2,);"
|
||||
+ "after:ExtrabiomesXL;"
|
||||
|
||||
@@ -59,7 +59,6 @@ public class ItemPipette extends ItemForestry implements IToolPipette, IFluidCon
|
||||
}
|
||||
|
||||
contained = new PipetteContents(new FluidStack(liquid, filled));
|
||||
filled = liquid.amount;
|
||||
} else {
|
||||
if (contained.getContents().amount >= limit) {
|
||||
return 0;
|
||||
@@ -141,7 +140,7 @@ public class ItemPipette extends ItemForestry implements IToolPipette, IFluidCon
|
||||
contained.getContents().amount -= drained;
|
||||
|
||||
if (contained.getContents().amount <= 0) {
|
||||
pipette.setTagCompound(null);
|
||||
pipette.setTagCompound(new NBTTagCompound());
|
||||
pipette.setItemDamage(0);
|
||||
} else {
|
||||
NBTTagCompound nbttagcompound = new NBTTagCompound();
|
||||
|
||||
Reference in new issue
Block a user