summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-04-06 00:02:31 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-04-06 00:02:31 -0400
commit2aa9556748e71ae0f87dcf0bf0098d9e2e663fdc (patch)
treead2e6d6a98ce570321465ad57dead8b1260f9506
parentef68e058ec69d52dff78a604833229f79cf661c6 (diff)
downloadpipeworks-2aa9556748e71ae0f87dcf0bf0098d9e2e663fdc.tar
pipeworks-2aa9556748e71ae0f87dcf0bf0098d9e2e663fdc.tar.gz
pipeworks-2aa9556748e71ae0f87dcf0bf0098d9e2e663fdc.tar.bz2
pipeworks-2aa9556748e71ae0f87dcf0bf0098d9e2e663fdc.tar.xz
pipeworks-2aa9556748e71ae0f87dcf0bf0098d9e2e663fdc.zip
tonumber() the config'd items limit
-rw-r--r--item_transport.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/item_transport.lua b/item_transport.lua
index 848b92b..32526f0 100644
--- a/item_transport.lua
+++ b/item_transport.lua
@@ -1,6 +1,6 @@
local luaentity = pipeworks.luaentity
local enable_max_limit = minetest.setting_get("pipeworks_enable_items_per_tube_limit")
-local max_tube_limit = minetest.setting_get("pipeworks_max_items_per_tube") or 40
+local max_tube_limit = tonumber(minetest.setting_get("pipeworks_max_items_per_tube")) or 40
function pipeworks.tube_item(pos, item)
error("obsolete pipeworks.tube_item() called; change caller to use pipeworks.tube_inject_item() instead")