From 64626b15c86ebc631a9e0ebf65fd54b3fe21ab56 Mon Sep 17 00:00:00 2001 From: PilzAdam Date: Sun, 27 Oct 2013 09:57:02 +0100 Subject: [PATCH] Fix a string not being converted into a number --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 21801ca..64d34bd 100644 --- a/init.lua +++ b/init.lua @@ -78,7 +78,7 @@ minetest.register_entity(":__builtin:item", { end, on_step = function(self, dtime) - local time = minetest.setting_get("remove_items") + local time = tonumber(minetest.setting_get("remove_items")) if not time then time = 300 end