mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-19 03:39:09 +00:00
Fix crash when right clicking with a can or capsule on a regular block
This commit is contained in:
1 parent
c4c3f493be
commit
1707573f7d
1 file changed
+4
@@ -94,6 +94,10 @@ public class ItemLiquidContainer extends ItemForestry implements IColoredItem {
|
||||
}
|
||||
}
|
||||
|
||||
if (fluid == null) {
|
||||
return ActionResult.newResult(EnumActionResult.FAIL, itemStackIn);
|
||||
}
|
||||
|
||||
ItemStack filledContainer = FluidHelper.getFilledContainer(fluid.getFluid(), itemStackIn);
|
||||
if (filledContainer == null) {
|
||||
return ActionResult.newResult(EnumActionResult.FAIL, itemStackIn);
|
||||
|
||||
Reference in new issue
Block a user