Skip to content

Commit 44dee89

Browse files
authored
Fix crash related to viewing ruin planets
1 parent 6afaaff commit 44dee89

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

mods/glutenfree-se-tinted-pyramids/info.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"title": "Space Exploration - tinted pyramids",
44
"description": "Tints unlooted pyramids in the color of the module.",
55
"category": "cheats",
6-
"version": "1.0.15",
6+
"version": "1.0.16",
77
"author": "Quezler",
88
"factorio_version": "1.1",
99
"dependencies": [

mods/glutenfree-se-tinted-pyramids/scripts/handler.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,10 @@ function Handler.on_post_surface_created(event)
111111
if zone.type ~= "planet" then return end
112112
if zone.is_homeworld then return end
113113

114+
-- https://mods.factorio.com/mod/glutenfree-se-tinted-pyramids/discussion/65555c2f0106094c6fc67b8f
115+
-- TODO: why does this only crash on the "large" planetside ruin and not the "smaller" one?
116+
if not zone.glyph then return game.print(zone.name .. ' has no glyph?') end
117+
114118
-- if the module is taken, return the tint to the default :)
115119
local inside_surface_name = Ancient.vault_surface_name(zone)
116120
local inside_surface = game.get_surface(inside_surface_name)

0 commit comments

Comments
 (0)