From ab4b89d76b89a50496307dca65223e1f45a31ec3 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Fri, 14 Mar 2014 12:09:59 -0400 Subject: [PATCH] fix missing infinite stacks detection on signs lib --- signs_lib/init.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/signs_lib/init.lua b/signs_lib/init.lua index 10fb73b..0456c7d 100644 --- a/signs_lib/init.lua +++ b/signs_lib/init.lua @@ -31,6 +31,14 @@ function signs_lib.table_copy(t) return nt end +-- infinite stacks + +if minetest.get_modpath("unified_inventory") or not minetest.setting_getbool("creative_mode") then + signs_lib.expect_infinite_stacks = false +else + signs_lib.expect_infinite_stacks = true +end + -- CONSTANTS local MP = minetest.get_modpath("signs_lib")