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:
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user