Extra error checking: global variables
This commit is contained in:
parent
bf26b8bee1
commit
1648bc459f
17 changed files with 362 additions and 323 deletions
|
@ -61,7 +61,7 @@ local traps = {
|
|||
|
||||
|
||||
local function goblin_do(self)
|
||||
if not (self and fun_caves.custom_ready(self)) then
|
||||
if not (self and fun_caves.custom_ready and fun_caves.search_replace and fun_caves.surface_damage and fun_caves.custom_ready(self)) then
|
||||
return
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue