mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 10:31:06 +01:00
Fix getting water back into bottle
This commit is contained in:
parent
7e832dc641
commit
5b039f1855
1 changed files with 3 additions and 4 deletions
|
@ -61,10 +61,9 @@ minetest.register_craftitem("mcl_potions:glass_bottle", {
|
||||||
local def = minetest.registered_nodes[node.name]
|
local def = minetest.registered_nodes[node.name]
|
||||||
|
|
||||||
-- Call on_rightclick if the pointed node defines it
|
-- Call on_rightclick if the pointed node defines it
|
||||||
if placer and not placer:get_player_control().sneak then
|
local new_stack = mcl_util.call_on_rightclick(itemstack, placer, pointed_thing)
|
||||||
if def and def.on_rightclick then
|
if new_stack and new_stack ~= itemstack then
|
||||||
return def.on_rightclick(pointed_thing.under, node, placer, itemstack) or itemstack
|
return new_stack
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Try to fill glass bottle with water
|
-- Try to fill glass bottle with water
|
||||||
|
|
Loading…
Reference in a new issue