Don't forget OpenComputers

This commit is contained in:
abel1502 2025-07-17 21:40:32 +03:00
parent 23487bd0d8
commit 0c5077b54a
No known key found for this signature in database
GPG Key ID: 076926596A536338

View File

@ -575,13 +575,32 @@ public class TileEntityRBMKConsole extends TileEntityMachineBase implements ICon
int x = args.checkInteger(0) - 7;
int y = -args.checkInteger(1) + 7;
int i = (y + 7) * 15 + (x + 7);
int i = x;
int j = y;
switch (rotation) {
case 0:
break;
case 1:
i = y;
j = -x;
break;
case 2:
i = -x;
j = -y;
break;
case 3:
i = -y;
j = x;
break;
}
int index = (j + 7) * 15 + (i + 7);
TileEntity te = Compat.getTileStandard(worldObj, targetX + x, targetY, targetZ + y);
if (te instanceof TileEntityRBMKBase) {
TileEntityRBMKBase column = (TileEntityRBMKBase) te;
NBTTagCompound column_data = columns[i].data;
NBTTagCompound column_data = columns[index].data;
LinkedHashMap<String, Object> data_table = new LinkedHashMap<>();
data_table.put("type", column.getConsoleType().name());
data_table.put("hullTemp", column_data.getDouble("heat"));