Add check to cans.lua L55

This commit is contained in:
Robert Frederick 2020-02-27 20:33:42 -05:00
parent d4c6d2efda
commit e9e3dac11a
1 changed files with 1 additions and 1 deletions

View File

@ -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