forked from mtcontrib/homedecor_modpack
fix duplication bug in lighting (forgot to return itemstack)
This commit is contained in:
parent
e9520f42e4
commit
f8ba120425
@ -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
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user