fix magnet not working before turning it off and on again
This commit is contained in:
@@ -196,7 +196,7 @@ public class ToolWirelessTerminal extends AEBasePoweredItem implements IWireless
|
|||||||
ItemStack is = siu.getStackInSlot(s);
|
ItemStack is = siu.getStackInSlot(s);
|
||||||
if (AEApi.instance().definitions().materials().cardMagnet().isSameAs(is)) {
|
if (AEApi.instance().definitions().materials().cardMagnet().isSameAs(is)) {
|
||||||
NBTTagCompound tag = is.getTagCompound();
|
NBTTagCompound tag = is.getTagCompound();
|
||||||
if (tag != null && !tag.getBoolean("enabled")) {
|
if (tag != null && tag.hasKey("enabled") && !tag.getBoolean("enabled")) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
ItemMaterial im = (ItemMaterial) is.getItem();
|
ItemMaterial im = (ItemMaterial) is.getItem();
|
||||||
|
|||||||
Reference in New Issue
Block a user