forked from nalc/homedecor_modpack
Do not pass a nil itemstack to on_rightclick
This commit is contained in:
parent
d04eb1cdef
commit
6b9a31bcba
@ -1,4 +1,3 @@
|
||||
|
||||
local S = homedecor.gettext
|
||||
|
||||
-- CONSTANTS
|
||||
@ -401,7 +400,7 @@ if not homedecor.disable_signs then
|
||||
local node=minetest.get_node(pointed_thing.under)
|
||||
|
||||
if minetest.registered_nodes[node.name] and minetest.registered_nodes[node.name].on_rightclick then
|
||||
return minetest.registered_nodes[node.name].on_rightclick(pointed_thing.under, node, placer)
|
||||
return minetest.registered_nodes[node.name].on_rightclick(pointed_thing.under, node, placer, itemstack)
|
||||
else
|
||||
local above = pointed_thing.above
|
||||
local under = pointed_thing.under
|
||||
|
Loading…
Reference in New Issue
Block a user