Extra error checking: global variables
This commit is contained in:
parent
bf26b8bee1
commit
1648bc459f
17 changed files with 362 additions and 323 deletions
|
@ -23,13 +23,15 @@ if mobs and mobs.mod == "redo" then
|
|||
for i = 1, 5 do
|
||||
food[#food+1] = 'default:grass_'..i
|
||||
end
|
||||
|
||||
if farming then
|
||||
for i = 5, 8 do
|
||||
food[#food+1] = 'farming:wheat_'..i
|
||||
end
|
||||
end
|
||||
|
||||
local function savage_gathering(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