1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2025-07-21 14:50:23 +02:00

add partial hd seating

This commit is contained in:
unknown
2022-05-01 14:48:56 -04:00
parent fdb7b55a81
commit 78a5c5747c
6 changed files with 40 additions and 83 deletions

View File

@ -19,7 +19,9 @@ minetest.register_node(":lrfurn:sofa", {
inventory_image = "lrfurn_sofa_inv.png",
wield_scale = { x = 0.6, y = 0.6, z = 0.6 },
groups = {snappy=3, ud_param2_colorable = 1},
sounds = default.node_sound_wood_defaults(),
_sound_def = {
key = "node_sound_wood_defaults",
},
selection_box = sofa_cbox,
node_box = sofa_cbox,
on_rotate = minetest.get_modpath("screwdriver") and screwdriver.disallow or nil,
@ -31,7 +33,7 @@ minetest.register_node(":lrfurn:sofa", {
local fdir = minetest.dir_to_facedir(placer:get_look_dir(), false)
if lrfurn.check_right(pos, fdir, false, placer) then
if not creative.is_enabled_for(playername) then
if not minetest.is_creative_enabled(playername) then
itemstack:take_item()
end
else