diff --git a/src/main/java/kasuga/lib/core/base/item_helper/ExternalRemainderBlockItem.java b/src/main/java/kasuga/lib/core/base/item_helper/ExternalRemainderBlockItem.java index 97b9765e..0fc98560 100644 --- a/src/main/java/kasuga/lib/core/base/item_helper/ExternalRemainderBlockItem.java +++ b/src/main/java/kasuga/lib/core/base/item_helper/ExternalRemainderBlockItem.java @@ -3,6 +3,7 @@ import net.minecraft.world.item.BlockItem; import net.minecraft.world.item.Item; import net.minecraft.world.item.ItemStack; +import net.minecraft.world.item.Items; import net.minecraft.world.level.block.Block; import javax.annotation.Nonnull; @@ -33,7 +34,7 @@ public boolean hasCraftingRemainingItem(ItemStack stack) { @Override public ItemStack getCraftingRemainingItem(ItemStack itemStack) { ItemStack remain = super.getCraftingRemainingItem(itemStack); - if (remain == ItemStack.EMPTY && craftingRemainder.get() != null) { + if ((remain == ItemStack.EMPTY || remain.is(Items.AIR)) && craftingRemainder.get() != null) { remain = craftingRemainder.get().getDefaultInstance(); } return remain; diff --git a/src/main/java/kasuga/lib/core/base/item_helper/ExternalRemainderItem.java b/src/main/java/kasuga/lib/core/base/item_helper/ExternalRemainderItem.java index 4f79b057..684cd81c 100644 --- a/src/main/java/kasuga/lib/core/base/item_helper/ExternalRemainderItem.java +++ b/src/main/java/kasuga/lib/core/base/item_helper/ExternalRemainderItem.java @@ -2,6 +2,7 @@ import net.minecraft.world.item.Item; import net.minecraft.world.item.ItemStack; +import net.minecraft.world.item.Items; import javax.annotation.Nonnull; import java.util.function.Supplier; @@ -31,7 +32,7 @@ public boolean hasCraftingRemainingItem(ItemStack stack) { @Override public ItemStack getCraftingRemainingItem(ItemStack itemStack) { ItemStack remain = super.getCraftingRemainingItem(itemStack); - if (remain == ItemStack.EMPTY && craftingRemainder.get() != null) { + if ((remain == ItemStack.EMPTY || remain.is(Items.AIR)) && craftingRemainder.get() != null) { remain = craftingRemainder.get().getDefaultInstance(); } return remain;