mirror of
https://github.com/minetest-mods/technic.git
synced 2024-09-27 06:50:18 +02:00
Add check to cans.lua L55
This commit is contained in:
parent
d4c6d2efda
commit
e9e3dac11a
|
@ -52,7 +52,7 @@ function technic.register_can(d)
|
||||||
if def.on_rightclick and user and not user:get_player_control().sneak then
|
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)
|
return def.on_rightclick(pos, minetest.get_node(pos), user, itemstack, pointed_thing)
|
||||||
end
|
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
|
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 then return end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user