Copy check from line 55 to line 58

This commit is contained in:
BobFred7 2020-02-29 20:08:12 -05:00 committed by GitHub
parent e9e3dac11a
commit 605ba9b836
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ function technic.register_can(d)
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
if not def.buildable_to or minetest.get_node(pos).name == data.liquid_source_name then return end
end
local charge = get_can_level(itemstack)
if charge == 0 then return end