From ed28182ba55e3521e6a0f6659217b297381476d3 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Fri, 9 Dec 2016 19:57:57 -0500 Subject: [PATCH] Fix not returning interaction result Closes #5 --- src/main/java/net/shadowfacts/funnels/BlockFunnel.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/shadowfacts/funnels/BlockFunnel.java b/src/main/java/net/shadowfacts/funnels/BlockFunnel.java index 8b97222..2afbc28 100644 --- a/src/main/java/net/shadowfacts/funnels/BlockFunnel.java +++ b/src/main/java/net/shadowfacts/funnels/BlockFunnel.java @@ -88,12 +88,13 @@ public class BlockFunnel extends BlockTE { } @Override - public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hand, EnumFacing heldItem, float side, float hitX, float hitY) { + public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hand, EnumFacing side, float hitX, float hitY, float hitZ) { if (!player.isSneaking()) { TileEntityFunnel te = getTileEntity(world, pos); ItemStack stack = player.getHeldItem(hand); FluidActionResult result = FluidUtil.interactWithFluidHandler(stack, te.getCapability(CapabilityFluidHandler.FLUID_HANDLER_CAPABILITY, EnumFacing.NORTH), player); if (result.isSuccess()) { + player.setHeldItem(hand, result.getResult()); te.save(); return true; }