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

add a function to correct for broken placement rotation

for wallmounted nodes (engine or _game bug), and put it
to use.
This commit is contained in:
Vanessa Ezekowitz
2017-01-29 03:45:58 -05:00
parent 79e501394a
commit 175724d53c
3 changed files with 23 additions and 14 deletions

View File

@ -41,6 +41,7 @@ minetest.register_node("homedecor:glowlight_half", {
groups = { snappy = 3 },
light_source = default.LIGHT_MAX,
sounds = default.node_sound_glass_defaults(),
after_place_node = homedecor.fix_rotation,
after_dig_node = unifieddyes.after_dig_node,
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
unifieddyes.on_rightclick(pos, node, clicker,
@ -72,6 +73,7 @@ minetest.register_node("homedecor:glowlight_quarter", {
groups = { snappy = 3 },
light_source = default.LIGHT_MAX-1,
sounds = default.node_sound_glass_defaults(),
after_place_node = homedecor.fix_rotation,
after_dig_node = unifieddyes.after_dig_node,
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
unifieddyes.on_rightclick(pos, node, clicker,
@ -103,6 +105,7 @@ minetest.register_node("homedecor:glowlight_small_cube", {
groups = { snappy = 3 },
light_source = default.LIGHT_MAX-1,
sounds = default.node_sound_glass_defaults(),
after_place_node = homedecor.fix_rotation,
after_dig_node = unifieddyes.after_dig_node,
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
unifieddyes.on_rightclick(pos, node, clicker,