fix recipe

This commit is contained in:
okx-code
2024-11-16 17:12:20 +00:00
parent 34f6bc6353
commit 5efedf180f

View File

@@ -60,7 +60,7 @@ public class HeliodorFinishRecipe extends InputRecipe {
continue;
}
Integer charge = HeliodorGem.getCharge(inventoryStack);
if (charge == 100) {
if (charge != null && charge == 100) {
int removeAmount = Math.min(amountToRemove, inventoryStack.getAmount());
if (removeAmount != 0) {
ItemStack cloneStack = inventoryStack.clone();