mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-17 11:15:12 -04:00
Should fix #1085 for good... probably.
This commit is contained in:
parent
0cf6e53d05
commit
d0062067d1
@ -70,13 +70,12 @@ class ServerRack(playerInventory: InventoryPlayer, val rack: tileentity.ServerRa
|
||||
}
|
||||
|
||||
override def drawScreen(mouseX: Int, mouseY: Int, dt: Float) {
|
||||
for (i <- 0 to 3 if powerButtons(i) != null) {
|
||||
if (powerButtons(0) == null) return // This should be impossible, but was reported to happen...
|
||||
for (i <- 0 to 3) {
|
||||
powerButtons(i).toggled = rack.isRunning(i)
|
||||
sideButtons(i).displayString = sideName(i)
|
||||
}
|
||||
if (switchButton != null) {
|
||||
switchButton.displayString = if (rack.internalSwitch) Localization.ServerRack.SwitchInternal else Localization.ServerRack.SwitchExternal
|
||||
}
|
||||
switchButton.displayString = if (rack.internalSwitch) Localization.ServerRack.SwitchInternal else Localization.ServerRack.SwitchExternal
|
||||
super.drawScreen(mouseX, mouseY, dt)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user