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:
commit
d57d5b0cf3
3
init.lua
3
init.lua
|
@ -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
|
||||
|
||||
|
|
Ŝarĝante…
Reference in New Issue