mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-19 12:17:17 -04:00
Fixes possible NPE in Raid tooltip, closes #918.
This commit is contained in:
parent
a0b6ff4b6d
commit
0caf328c12
@ -29,7 +29,7 @@ class Raid(protected implicit val tileTag: ClassTag[tileentity.Raid]) extends Si
|
|||||||
super.tooltipTail(metadata, stack, player, tooltip, advanced)
|
super.tooltipTail(metadata, stack, player, tooltip, advanced)
|
||||||
if (KeyBindings.showExtendedTooltips) {
|
if (KeyBindings.showExtendedTooltips) {
|
||||||
val data = new RaidData(stack)
|
val data = new RaidData(stack)
|
||||||
for (disk <- data.disks) {
|
for (disk <- data.disks if disk != null) {
|
||||||
tooltip.add("- " + disk.getDisplayName)
|
tooltip.add("- " + disk.getDisplayName)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user