mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-25 06:14:46 +00:00
1 parent
649c13f5f0
commit
fd25e0822d
1 file changed
+3
-3
@@ -77,7 +77,7 @@ public class ItemFluidContainerForestry extends ItemForestry {
|
||||
if (this.isInCreativeTab(tab)) {
|
||||
// empty
|
||||
subItems.add(new ItemStack(this));
|
||||
|
||||
|
||||
// filled
|
||||
for (Fluid fluid : FluidRegistry.getRegisteredFluids().values()) {
|
||||
ItemStack itemStack = new ItemStack(this);
|
||||
@@ -194,9 +194,9 @@ public class ItemFluidContainerForestry extends ItemForestry {
|
||||
return new ActionResult<>(EnumActionResult.FAIL, heldItem);
|
||||
}
|
||||
} else {
|
||||
if(Config.CapsuleFluidPickup) {
|
||||
if (Config.CapsuleFluidPickup) {
|
||||
RayTraceResult target = this.rayTrace(world, player, true);
|
||||
if (target.typeOfHit != RayTraceResult.Type.BLOCK) {
|
||||
if (target == null || target.typeOfHit != RayTraceResult.Type.BLOCK) {
|
||||
return ActionResult.newResult(EnumActionResult.PASS, heldItem);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user