fix incorrect variable name
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>
Sun, 15 Dec 2013 10:26:39 +0000 (05:26 -0500)
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>
Sun, 15 Dec 2013 10:26:39 +0000 (05:26 -0500)
devices.lua
init.lua

index ffe56a92187637e56f9df6ff6c84601d35d2d9b4..46ed873f87fcbcf68e40640f141241a41e9f564e 100644 (file)
@@ -425,7 +425,7 @@ minetest.register_node("pipeworks:entry_panel_empty", {
                                minetest.add_node(pos1, {name = "pipeworks:entry_panel_empty", param2 = fdir })
                                pipeworks.scan_for_pipe_objects(pos1)
 
-                               if not pipeworks_expect_infinite_stacks then
+                               if not pipeworks.expect_infinite_stacks then
                                        itemstack:take_item()
                                end
 
index 101bb52d7326526c4ff3e4d79102558f3ae0b894..178864a65d53c3bd32a02b44a50b7ef8d013492a 100644 (file)
--- a/init.lua
+++ b/init.lua
@@ -40,7 +40,7 @@ end
 
 pipeworks.expect_infinite_stacks = true
 if minetest.get_modpath("unified_inventory") or not minetest.setting_getbool("creative_mode") then
-       pipeworks_expect_infinite_stacks = false
+       pipeworks.expect_infinite_stacks = false
 end
 
 pipeworks.meseadjlist={{x=0,y=0,z=1},{x=0,y=0,z=-1},{x=0,y=1,z=0},{x=0,y=-1,z=0},{x=1,y=0,z=0},{x=-1,y=0,z=0}}