mirror of
https://github.com/minetest-mods/technic.git
synced 2025-02-22 23:00:22 +01:00
Copy check from line 55 to line 58
This commit is contained in:
parent
e9e3dac11a
commit
605ba9b836
@ -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
|
if not def.buildable_to or minetest.get_node(pos).name == data.liquid_source_name then
|
||||||
pos = pointed_thing.above
|
pos = pointed_thing.above
|
||||||
def = minetest.registered_nodes[minetest.get_node(pos).name] or {}
|
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
|
end
|
||||||
local charge = get_can_level(itemstack)
|
local charge = get_can_level(itemstack)
|
||||||
if charge == 0 then return end
|
if charge == 0 then return end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user