From e86fbf04fd73644f22a9d3a04cfac2c283a8e1c0 Mon Sep 17 00:00:00 2001 From: 90 Date: Tue, 20 Feb 2024 10:42:00 +0000 Subject: [PATCH] Fix being unable to disassemble portable chemical cells (#53) --- .../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..8b0879b 100644 --- a/src/main/java/me/ramidzkh/mekae2/item/ChemicalPortableCellItem.java +++ b/src/main/java/me/ramidzkh/mekae2/item/ChemicalPortableCellItem.java @@ -1,5 +1,8 @@ package me.ramidzkh.mekae2.item; +import java.util.Objects; + +import net.minecraft.resources.ResourceLocation; import net.minecraft.world.inventory.MenuType; import net.minecraft.world.item.ItemStack; @@ -27,4 +30,9 @@ public boolean isBlackListed(ItemStack cellItem, AEKey requestedAddition) { return true; } + + @Override + public ResourceLocation getRecipeId() { + return Objects.requireNonNull(getRegistryName()); + } }