From e9e3dac11ad52619bf39c036796321e67d026524 Mon Sep 17 00:00:00 2001 From: Robert Frederick Date: Thu, 27 Feb 2020 20:33:42 -0500 Subject: [PATCH] Add check to cans.lua L55 --- technic/tools/cans.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/technic/tools/cans.lua b/technic/tools/cans.lua index 369259e..abe7352 100644 --- a/technic/tools/cans.lua +++ b/technic/tools/cans.lua @@ -52,7 +52,7 @@ function technic.register_can(d) if def.on_rightclick and user and not user:get_player_control().sneak then return def.on_rightclick(pos, minetest.get_node(pos), user, itemstack, pointed_thing) end - if not def.buildable_to then + if not def.buildable_to or minetest.get_node(pos).name == data.liquid_source_name then pos = pointed_thing.above def = minetest.registered_nodes[minetest.get_node(pos).name] or {} if not def.buildable_to then return end