aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShawnBuckley <ShawnBuckley@users.noreply.github.com>2015-10-21 21:30:58 -0400
committerShawnBuckley <ShawnBuckley@users.noreply.github.com>2015-10-21 21:30:58 -0400
commit43ddecc7b9715d2038747566f89930b5db8d0181 (patch)
tree2dec3b11e87178b9a63907bacf828c6ffb718e68 /src
parent58d3a1c5ddf36d8bea39bb1abef7f472170d1e7c (diff)
parentad473b9ac03778d35829e3e950ae6ab4c85e3d8c (diff)
downloadGT5-Unofficial-43ddecc7b9715d2038747566f89930b5db8d0181.tar.gz
GT5-Unofficial-43ddecc7b9715d2038747566f89930b5db8d0181.tar.bz2
GT5-Unofficial-43ddecc7b9715d2038747566f89930b5db8d0181.zip
Merge pull request #258 from ShawnBuckley/ic2nc_update
Update IC2 Nuclear control to 2.3.1a-Butt
Diffstat (limited to 'src')
-rw-r--r--src/main/java/gregtech/common/items/GT_SensorCard_Item.java19
1 files changed, 12 insertions, 7 deletions
diff --git a/src/main/java/gregtech/common/items/GT_SensorCard_Item.java b/src/main/java/gregtech/common/items/GT_SensorCard_Item.java
index b1781cccb9..ac816acd1c 100644
--- a/src/main/java/gregtech/common/items/GT_SensorCard_Item.java
+++ b/src/main/java/gregtech/common/items/GT_SensorCard_Item.java
@@ -50,13 +50,18 @@ public class GT_SensorCard_Item
}
}
}
-
- public CardState update(TileEntity aPanel, ICardWrapper aCard, int aMaxRange)
- {
+
+ @Override
+ public CardState update(TileEntity aPanel, ICardWrapper aCard, int aMaxRange) {
+ return update(aPanel.getWorldObj(), aCard, aMaxRange);
+ }
+
+ @Override
+ public CardState update(World world, ICardWrapper aCard, int aMaxRange) {
ChunkCoordinates target = aCard.getTarget();
- TileEntity tTileEntity = aPanel.getWorldObj().getTileEntity(target.posX, target.posY, target.posZ);
- if ((tTileEntity != null) && ((tTileEntity instanceof IGregTechDeviceInformation)) && (((IGregTechDeviceInformation)tTileEntity).isGivingInformation()))
- {
+
+ TileEntity tTileEntity = world.getTileEntity(target.posX, target.posY, target.posZ);
+ if ((tTileEntity != null) && ((tTileEntity instanceof IGregTechDeviceInformation)) && (((IGregTechDeviceInformation)tTileEntity).isGivingInformation())) {
String[] tInfoData = ((IGregTechDeviceInformation)tTileEntity).getInfoData();
for (int i = 0; i < tInfoData.length; i++) {
aCard.setString("mString" + i, tInfoData[i]);
@@ -65,7 +70,7 @@ public class GT_SensorCard_Item
}
return CardState.NO_TARGET;
}
-
+
public List<PanelString> getStringData(int aSettings, ICardWrapper aCard, boolean aLabels)
{
List<PanelString> rList = new LinkedList();