diff options
author | ShadowNinja <owenptorres@gmail.com> | 2013-07-20 14:48:18 -0700 |
---|---|---|
committer | ShadowNinja <owenptorres@gmail.com> | 2013-07-20 14:48:18 -0700 |
commit | e43e6cc1b0f4de3107179f6b86f23db60f492d1d (patch) | |
tree | 2a1c482d3403dcc64cd72b5f41f880564502c996 /item_drop | |
parent | acef4b1f6341492684da1ad876bfc56f02b7f7fb (diff) | |
parent | 17f3ce2ba37918c828046dbba4cb069415e90a71 (diff) |
Merge pull request #61 from hdastwb/patch-1
Convert remove_items to a number in item_drop to avoid crashes
Diffstat (limited to 'item_drop')
-rw-r--r-- | item_drop/item_entity.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/item_drop/item_entity.lua b/item_drop/item_entity.lua index 5da8285..fb0527f 100644 --- a/item_drop/item_entity.lua +++ b/item_drop/item_entity.lua @@ -88,7 +88,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 |