1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2024-12-23 00:20:17 +01:00

fix duplication bug in lighting (forgot to return itemstack)

This commit is contained in:
Vanessa Ezekowitz 2013-06-07 13:15:54 -04:00
parent e9520f42e4
commit f8ba120425

View File

@ -134,6 +134,7 @@ minetest.register_node('homedecor:glowlight_half_yellow', {
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
homedecor_rotate_and_place(itemstack, placer, pointed_thing) homedecor_rotate_and_place(itemstack, placer, pointed_thing)
return itemstack
end end
}) })
@ -166,6 +167,7 @@ minetest.register_node('homedecor:glowlight_quarter_yellow', {
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
homedecor_rotate_and_place(itemstack, placer, pointed_thing) homedecor_rotate_and_place(itemstack, placer, pointed_thing)
return itemstack
end end
}) })
@ -202,6 +204,7 @@ minetest.register_node('homedecor:glowlight_half_white', {
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
homedecor_rotate_and_place(itemstack, placer, pointed_thing) homedecor_rotate_and_place(itemstack, placer, pointed_thing)
return itemstack
end end
}) })
@ -234,6 +237,7 @@ minetest.register_node('homedecor:glowlight_quarter_white', {
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
homedecor_rotate_and_place(itemstack, placer, pointed_thing) homedecor_rotate_and_place(itemstack, placer, pointed_thing)
return itemstack
end end
}) })
@ -269,6 +273,7 @@ minetest.register_node('homedecor:glowlight_small_cube_yellow', {
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
homedecor_rotate_and_place(itemstack, placer, pointed_thing) homedecor_rotate_and_place(itemstack, placer, pointed_thing)
return itemstack
end end
}) })
@ -301,6 +306,7 @@ minetest.register_node('homedecor:glowlight_small_cube_white', {
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
homedecor_rotate_and_place(itemstack, placer, pointed_thing) homedecor_rotate_and_place(itemstack, placer, pointed_thing)
return itemstack
end end
}) })