fix magnet not working before turning it off and on again

This commit is contained in:
PrototypeTrousers
2023-10-11 17:20:53 -03:00
parent bfe82cdc0a
commit d1ec1a88ee
@@ -196,7 +196,7 @@ public class ToolWirelessTerminal extends AEBasePoweredItem implements IWireless
ItemStack is = siu.getStackInSlot(s);
if (AEApi.instance().definitions().materials().cardMagnet().isSameAs(is)) {
NBTTagCompound tag = is.getTagCompound();
if (tag != null && !tag.getBoolean("enabled")) {
if (tag != null && tag.hasKey("enabled") && !tag.getBoolean("enabled")) {
return;
}
ItemMaterial im = (ItemMaterial) is.getItem();