mirror of
https://github.com/GTNewHorizons/AE2FluidCraft-Rework.git
synced 2026-11-16 10:34:40 +00:00
Wireless Terminal infinite check
This commit is contained in:
1 file changed
+12
@@ -146,4 +146,16 @@ public class ItemBaseWirelessTerminal extends ToolWirelessTerminal implements II
|
||||
if (wh == null) return null;
|
||||
return new WirelessTerminalGuiObject(wh, is, p, world, x, y, z);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasInfinityPower(ItemStack is) {
|
||||
NBTTagCompound data = is.getTagCompound();
|
||||
return data != null && data.hasKey(infinityEnergyCard) && data.getBoolean(infinityEnergyCard);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasInfinityRange(ItemStack is) {
|
||||
NBTTagCompound data = is.getTagCompound();
|
||||
return data != null && data.hasKey(infinityBoosterCard) && data.getBoolean(infinityBoosterCard);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user