Merge pull request #258 from ShawnBuckley/ic2nc_update
Update IC2 Nuclear control to 2.3.1a-Butt
This commit is contained in:
commit
43ddecc7b9
1 changed files with 12 additions and 7 deletions
|
@ -51,12 +51,17 @@ 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]);
|
||||
|
|
Loading…
Reference in a new issue