Skip to content

Commit

Permalink
Fix being unable to disassemble portable chemical cells
Browse files Browse the repository at this point in the history
  • Loading branch information
62832 committed Feb 18, 2024
1 parent 6dd092d commit bbf95fe
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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;

Expand All @@ -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,
Expand All @@ -27,4 +30,9 @@ public boolean isBlackListed(ItemStack cellItem, AEKey requestedAddition) {

return true;
}

@Override
public ResourceLocation getRecipeId() {
return Objects.requireNonNull(getRegistryName());
}
}

0 comments on commit bbf95fe

Please sign in to comment.