From 9690f780ffe6216e594486b323ac57267f4d587a Mon Sep 17 00:00:00 2001 From: drcrazy Date: Fri, 3 Jan 2020 15:16:29 +0300 Subject: [PATCH] Do not pass to second hand after cell use on block. --- src/main/java/techreborn/items/ItemDynamicCell.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/techreborn/items/ItemDynamicCell.java b/src/main/java/techreborn/items/ItemDynamicCell.java index 95a266416..77d9efa43 100644 --- a/src/main/java/techreborn/items/ItemDynamicCell.java +++ b/src/main/java/techreborn/items/ItemDynamicCell.java @@ -25,7 +25,6 @@ package techreborn.items; import net.minecraft.block.BlockState; -import net.minecraft.block.Blocks; import net.minecraft.block.FluidDrainable; import net.minecraft.entity.player.PlayerEntity; import net.minecraft.fluid.Fluid; @@ -158,7 +157,7 @@ public class ItemDynamicCell extends Item implements ItemFluidInfo { stack.decrement(1); insertOrDropStack(player, getCellWithFluid(drainFluid, 1)); playEmptyingSound(player, world, hitPos, drainFluid); - return TypedActionResult.pass(stack); + return TypedActionResult.success(stack); } } @@ -170,7 +169,7 @@ public class ItemDynamicCell extends Item implements ItemFluidInfo { insertOrDropStack(player, getEmpty()); playEmptyingSound(player, world, placePos, containedFluid); - return TypedActionResult.pass(stack); + return TypedActionResult.success(stack); } } }