mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2025-07-27 17:30:17 +02:00
Always return the ItemStack for on_rightclick to comply with the API.
This commit is contained in:
@ -84,9 +84,10 @@ for i in ipairs(chaircolors) do
|
||||
collision_box = kc_cbox,
|
||||
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
on_rightclick = function(pos, node, clicker)
|
||||
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
||||
pos.y = pos.y+0 -- where do I put my ass ?
|
||||
homedecor.sit(pos, node, clicker)
|
||||
return itemstack
|
||||
end
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user