This commit is contained in:
SmallJoker 2020-05-01 21:22:18 +02:00 committed by GitHub
parent b198180567
commit 09da518f88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -54,7 +54,8 @@ function technic.register_can(d)
return def.on_rightclick(pos, minetest.get_node(pos), user, itemstack, pointed_thing)
end
if not def.buildable_to or node_name == data.liquid_source_name then
node_name = minetest.get_node(pointed_thing.above).name
pos = pointed_thing.above
node_name = minetest.get_node(pos).name
def = minetest.registered_nodes[node_name] or {}
-- Try to place node above the pointed source, or abort.
if not def.buildable_to or node_name == data.liquid_source_name then return end