File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
mods/glutenfree-se-tinted-pyramids Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 3
3
"title" : " Space Exploration - tinted pyramids" ,
4
4
"description" : " Tints unlooted pyramids in the color of the module." ,
5
5
"category" : " cheats" ,
6
- "version" : " 1.0.15 " ,
6
+ "version" : " 1.0.16 " ,
7
7
"author" : " Quezler" ,
8
8
"factorio_version" : " 1.1" ,
9
9
"dependencies" : [
Original file line number Diff line number Diff line change @@ -111,6 +111,10 @@ function Handler.on_post_surface_created(event)
111
111
if zone .type ~= " planet" then return end
112
112
if zone .is_homeworld then return end
113
113
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
+
114
118
-- if the module is taken, return the tint to the default :)
115
119
local inside_surface_name = Ancient .vault_surface_name (zone )
116
120
local inside_surface = game .get_surface (inside_surface_name )
You can’t perform that action at this time.
0 commit comments