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:
@ -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,
|
||||
|
Reference in New Issue
Block a user