From fe72d9fa87a003bcaabbf873667fbbae673e3466 Mon Sep 17 00:00:00 2001 From: Joachim Stolberg Date: Fri, 20 Dec 2024 22:38:40 +0100 Subject: [PATCH] bug fix 'Rare case crash'from techage_modpack --- basis/numbers_storage.lua | 1 + 1 file changed, 1 insertion(+) 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