summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPilzAdam <pilzadam@minetest.net>2013-10-27 09:57:02 +0100
committerPilzAdam <pilzadam@minetest.net>2013-10-27 09:57:02 +0100
commit64626b15c86ebc631a9e0ebf65fd54b3fe21ab56 (patch)
treea0fd1af42fdbf6003223bd11ea92c366479eb36f
parent7c7d3e2292f16b91dc8760e741cdd0988d8f5052 (diff)
Fix a string not being converted into a numberHEADorigin/masterorigin/HEADmaster
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
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