1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2025-08-02 11:40:17 +02:00

use unified dyes' on_rotate handler for some nodes

This commit is contained in:
Vanessa Ezekowitz
2017-02-18 13:01:49 -05:00
parent 6c0dd2d31a
commit 18d2e492af
4 changed files with 9 additions and 2 deletions

View File

@ -59,6 +59,7 @@ homedecor.register("kitchen_chair_wood", {
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2, ud_param2_colorable = 1},
sounds = default.node_sound_wood_defaults(),
after_place_node = unifieddyes.fix_rotation_nsew,
on_rotate = unifieddyes.fix_after_screwdriver_nsew,
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)
@ -82,6 +83,7 @@ homedecor.register("kitchen_chair_padded", {
sounds = default.node_sound_wood_defaults(),
after_place_node = unifieddyes.fix_rotation_nsew,
after_dig_node = unifieddyes.after_dig_node,
on_rotate = unifieddyes.fix_after_screwdriver_nsew,
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)
@ -105,6 +107,7 @@ homedecor.register("armchair", {
node_box = ac_cbox,
after_place_node = unifieddyes.fix_rotation_nsew,
after_dig_node = unifieddyes.after_dig_node,
on_rotate = unifieddyes.fix_after_screwdriver_nsew,
})
local ob_cbox = {