mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-28 07:35:47 +00:00
Fix #948 Bottler Error in Console Forestry NEI Integration
This commit is contained in:
1 parent
c9b145817e
commit
08812ae5ea
1 file changed
+8
-3
@@ -248,8 +248,8 @@ public class TileBottler extends TilePowered implements ISidedInventory, ILiquid
|
||||
public final ItemStack empty;
|
||||
public final ItemStack filled;
|
||||
|
||||
private BottlerRecipe(ItemStack empty, ItemStack filled) {
|
||||
this.input = FluidHelper.getFluidStackInContainer(filled);
|
||||
private BottlerRecipe(ItemStack empty, FluidStack input, ItemStack filled) {
|
||||
this.input = input;
|
||||
if (empty.getItem() instanceof IFluidContainerItem) {
|
||||
FluidStack emptyFluid = FluidHelper.getFluidStackInContainer(empty);
|
||||
if (emptyFluid != null) {
|
||||
@@ -285,7 +285,12 @@ public class TileBottler extends TilePowered implements ISidedInventory, ILiquid
|
||||
return null;
|
||||
}
|
||||
|
||||
return new BottlerRecipe(empty, filled);
|
||||
FluidStack input = FluidHelper.getFluidStackInContainer(filled);
|
||||
if (input == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return new BottlerRecipe(empty, input, filled);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user