Merged in feature/2-x_bows-load-should-return-itemstack (pull request #2)

2 Return itemstack on x_bows.load on_place func
This commit is contained in:
Juraj Vajda 2021-05-30 01:02:22 +00:00
commit d57d5b0cf3

View File

@ -97,8 +97,7 @@ function x_bows.load(itemstack, user, pointed_thing)
local node_def = minetest.registered_nodes[node.name]
if node_def and node_def.on_rightclick then
node_def.on_rightclick(pointed_thing.under, node, user, itemstack, pointed_thing)
return
return node_def.on_rightclick(pointed_thing.under, node, user, itemstack, pointed_thing)
end
end