Fix crash condition on station with non-virtual signal for network

This commit is contained in:
Will Berry
2023-03-09 12:59:37 -05:00
parent 7d60f9412a
commit 547bb93390
3 changed files with 11 additions and 10 deletions

View File

@@ -48,6 +48,10 @@ function util.generate_item_references(item)
sprite = "fluid/" .. item
image_path = "[img=fluid." .. item .. "]"
item_name = "fluid-name." .. item
elseif game.is_valid_sprite_path("virtual-signal/" .. item) then
sprite = "virtual-signal/" .. item
image_path = "[img=virtual-signal." .. item .. "]"
item_name = "virtual-signal." .. item
end
return sprite, image_path, item_name
end