From bbf95fe2c2553b43c55727cfd794e6569bfe8abc Mon Sep 17 00:00:00 2001 From: 90 Date: Sun, 18 Feb 2024 17:12:07 +0000 Subject: [PATCH] Fix being unable to disassemble portable chemical cells --- .../me/ramidzkh/mekae2/item/ChemicalPortableCellItem.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/me/ramidzkh/mekae2/item/ChemicalPortableCellItem.java b/src/main/java/me/ramidzkh/mekae2/item/ChemicalPortableCellItem.java index 503eb20..0b744d4 100644 --- a/src/main/java/me/ramidzkh/mekae2/item/ChemicalPortableCellItem.java +++ b/src/main/java/me/ramidzkh/mekae2/item/ChemicalPortableCellItem.java @@ -1,5 +1,6 @@ package me.ramidzkh.mekae2.item; +import net.minecraft.resources.ResourceLocation; import net.minecraft.world.inventory.MenuType; import net.minecraft.world.item.ItemStack; @@ -11,6 +12,8 @@ import appeng.items.storage.StorageTier; import appeng.items.tools.powered.PortableCellItem; +import java.util.Objects; + public class ChemicalPortableCellItem extends PortableCellItem { public ChemicalPortableCellItem(int totalTypes, MenuType menuType, StorageTier tier, Properties props, @@ -27,4 +30,9 @@ public boolean isBlackListed(ItemStack cellItem, AEKey requestedAddition) { return true; } + + @Override + public ResourceLocation getRecipeId() { + return Objects.requireNonNull(getRegistryName()); + } }