bug fix 'Rare case crash'from techage_modpack

This commit is contained in:
Joachim Stolberg 2024-12-20 22:38:40 +01:00
parent ac6970faac
commit fe72d9fa87

View File

@ -58,6 +58,7 @@ storage:set_int("Version", Version)
-- API functions
-------------------------------------------------------------------
function backend.get_nodepos(number)
if not type(number) == "string" then return end
return minetest.string_to_pos(storage:get_string(number))
end