Skip to content

Commit

Permalink
fix: revert to vanilla brewing stand remainder mechanic (#1326)
Browse files Browse the repository at this point in the history
  • Loading branch information
jebibot authored May 1, 2024
1 parent 6a11551 commit 08bffd8
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,14 @@ private static void doBrew(Level level, BlockPos pos, NonNullList<ItemStack> sta
return;
}

itemStack.shrink(1);
if (itemStack.getItem().hasCraftingRemainingItem()) {
ItemStack itemStack2 = new ItemStack(itemStack.getItem().getCraftingRemainingItem());
itemStack.shrink(1);
if (itemStack.isEmpty()) {
itemStack = itemStack2;
} else {
Containers.dropItemStack(level, pos.getX(), pos.getY(), pos.getZ(), itemStack2);
}
} else {
itemStack.shrink(1);
}

stacks.set(3, itemStack);
Expand Down

0 comments on commit 08bffd8

Please sign in to comment.