mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-24 14:45:12 +00:00
Fix crash when using eye of ender in singlenode
This commit is contained in:
parent
96c7df9b45
commit
40d22d2173
1 changed files with 5 additions and 1 deletions
|
@ -306,7 +306,11 @@ Format of return value:
|
||||||
TODO: Implement this function for all other structure types as well.
|
TODO: Implement this function for all other structure types as well.
|
||||||
]]
|
]]
|
||||||
mcl_structures.get_registered_structures = function(structure_type)
|
mcl_structures.get_registered_structures = function(structure_type)
|
||||||
|
if registered_structures[structure_type] then
|
||||||
return table.copy(registered_structures[structure_type])
|
return table.copy(registered_structures[structure_type])
|
||||||
|
else
|
||||||
|
return {}
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Register a structures table for the given type. The table format is the same as for
|
-- Register a structures table for the given type. The table format is the same as for
|
||||||
|
|
Loading…
Reference in a new issue