Skip to content

Commit

Permalink
Fix dupe bug when filling bucket in off-hand, Closes #27
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensworks committed Mar 12, 2022
1 parent 76efba1 commit 6f69e5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/cyclops/flopper/block/BlockFlopper.java
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ && tryEmptyContainer(itemStack, fluidHandler, FluidHelpers.BUCKET_VOLUME, player
if (result.isSuccess()) {
ItemStack drainedItem = result.getResult();
if (!player.isCreative()) {
InventoryHelpers.tryReAddToStack(player, itemStack, drainedItem);
InventoryHelpers.tryReAddToStack(player, itemStack, drainedItem, hand);
}
}
return ActionResultType.SUCCESS;
Expand All @@ -221,7 +221,7 @@ && tryEmptyContainer(itemStack, fluidHandler, FluidHelpers.BUCKET_VOLUME, player
if (result.isSuccess()) {
ItemStack filledItem = result.getResult();
if (!player.isCreative()) {
InventoryHelpers.tryReAddToStack(player, itemStack, filledItem);
InventoryHelpers.tryReAddToStack(player, itemStack, filledItem, hand);
}
}
return ActionResultType.SUCCESS;
Expand Down

0 comments on commit 6f69e5b

Please sign in to comment.