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 a852890c36
commit 7269fbfdab
2 changed files with 2 additions and 2 deletions

View File

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

View File

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