ChargeRecipe and TotemRecipe:

- assemble method returns a copy of the result item which fixes a bug where it gets replaced with air after being crafted once.
This commit is contained in:
Micle
2022-11-03 20:26:13 +00:00
parent 3f42bdf25d
commit 575b58a9b1
2 changed files with 2 additions and 2 deletions

View File

@ -28,6 +28,6 @@ public class ChargeRecipe extends ExtendedShapedRecipe {
@Override @Override
public ItemStack assemble(CraftingContainer inventory) { public ItemStack assemble(CraftingContainer inventory) {
return getBaseRecipe().getResultItem(); return getBaseRecipe().getResultItem().copy();
} }
} }

View File

@ -28,6 +28,6 @@ public class TotemRecipe extends ExtendedShapedRecipe {
@Override @Override
public ItemStack assemble(CraftingContainer inventory) { public ItemStack assemble(CraftingContainer inventory) {
return getBaseRecipe().getResultItem(); return getBaseRecipe().getResultItem().copy();
} }
} }