mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-19 04:06:43 -04:00
Fixed potential NPE in MCU tooltip.
This commit is contained in:
parent
279f87a2b9
commit
c05b4fc3d6
@ -47,7 +47,7 @@ class Microcontroller(protected implicit val tileTag: ClassTag[tileentity.Microc
|
||||
super.tooltipTail(metadata, stack, player, tooltip, advanced)
|
||||
if (KeyBindings.showExtendedTooltips) {
|
||||
val info = new MicrocontrollerData(stack)
|
||||
for (component <- info.components) {
|
||||
for (component <- info.components if component != null) {
|
||||
tooltip.add("- " + component.getDisplayName)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user