summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-04-06 00:15:16 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-04-06 00:15:16 -0400
commitf3a74bb618d96a599e2cc0f416c5c67320181275 (patch)
treeafea960b1c8d2531319dc6c263204a698025a41a
parent2aa9556748e71ae0f87dcf0bf0098d9e2e663fdc (diff)
downloadpipeworks-f3a74bb618d96a599e2cc0f416c5c67320181275.tar
pipeworks-f3a74bb618d96a599e2cc0f416c5c67320181275.tar.gz
pipeworks-f3a74bb618d96a599e2cc0f416c5c67320181275.tar.bz2
pipeworks-f3a74bb618d96a599e2cc0f416c5c67320181275.tar.xz
pipeworks-f3a74bb618d96a599e2cc0f416c5c67320181275.zip
default breaking code to "enabled" and lower the default limit to 30.
-rw-r--r--item_transport.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/item_transport.lua b/item_transport.lua
index 32526f0..9f67add 100644
--- a/item_transport.lua
+++ b/item_transport.lua
@@ -1,6 +1,7 @@
local luaentity = pipeworks.luaentity
local enable_max_limit = minetest.setting_get("pipeworks_enable_items_per_tube_limit")
-local max_tube_limit = tonumber(minetest.setting_get("pipeworks_max_items_per_tube")) or 40
+local max_tube_limit = tonumber(minetest.setting_get("pipeworks_max_items_per_tube")) or 30
+if enable_max_limit == nil then enable_max_limit = true end
function pipeworks.tube_item(pos, item)
error("obsolete pipeworks.tube_item() called; change caller to use pipeworks.tube_inject_item() instead")