diff --git a/basis/numbers_storage.lua b/basis/numbers_storage.lua index 02219b1..91bd083 100644 --- a/basis/numbers_storage.lua +++ b/basis/numbers_storage.lua @@ -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