Skip to content

Commit

Permalink
Fix crafting remainders for Cutting Axe and Bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
Choonster committed Nov 13, 2024
1 parent b0fe287 commit bece115
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,7 @@ public CuttingAxeItem(final ToolMaterial toolMaterial, final float attackDamage,
}

@Override
public boolean hasCraftingRemainingItem(final ItemStack stack) {
return true;
}

@Override
public ItemStack getCraftingRemainingItem(final ItemStack itemStack) {
public ItemStack getCraftingRemainder(final ItemStack itemStack) {
final var remainingItem = itemStack.copy();
final var craftingPlayer = ForgeHooks.getCraftingPlayer();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,7 @@ public Component getName(final ItemStack stack) {
}

@Override
public boolean hasCraftingRemainingItem(final ItemStack stack) {
return !getFluid(stack).isEmpty();
}

@Override
public ItemStack getCraftingRemainingItem(final ItemStack itemStack) {
public ItemStack getCraftingRemainder(final ItemStack itemStack) {
return empty();
}

Expand Down

0 comments on commit bece115

Please sign in to comment.