Corrige problème de stack des lampes dans inventaire après récolte.

L'auteur du mod a oublié de définir la variable drop des objets
concernés :
- homedecor:glowlight_half,
- homedecor:glowlight_quarter,
- homedecor:glowlight_small_cube,
- homedecor:standing_lamp_off,
- homedecor:desk_lamp.
This commit is contained in:
Sys Quatre 2019-04-07 14:04:00 +02:00
parent 4eb9ffb088
commit 5d4c64d3b2

View File

@ -48,7 +48,8 @@ minetest.register_node("homedecor:glowlight_half", {
unifieddyes.fix_rotation(pos, placer, itemstack, pointed_thing)
unifieddyes.recolor_on_place(pos, placer, itemstack, pointed_thing)
end,
after_dig_node = unifieddyes.after_dig_node
after_dig_node = unifieddyes.after_dig_node,
drop = "homedecor:glowlight_half"
})
minetest.register_node("homedecor:glowlight_quarter", {
@ -88,7 +89,8 @@ minetest.register_node("homedecor:glowlight_quarter", {
unifieddyes.fix_rotation(pos, placer, itemstack, pointed_thing)
unifieddyes.recolor_on_place(pos, placer, itemstack, pointed_thing)
end,
after_dig_node = unifieddyes.after_dig_node
after_dig_node = unifieddyes.after_dig_node,
drop = "homedecor:glowlight_quarter"
})
minetest.register_node("homedecor:glowlight_small_cube", {
@ -128,7 +130,8 @@ minetest.register_node("homedecor:glowlight_small_cube", {
unifieddyes.fix_rotation(pos, placer, itemstack, pointed_thing)
unifieddyes.recolor_on_place(pos, placer, itemstack, pointed_thing)
end,
after_dig_node = unifieddyes.after_dig_node
after_dig_node = unifieddyes.after_dig_node,
drop = "homedecor:glowlight_small_cube"
})
homedecor.register("plasma_lamp", {
@ -489,6 +492,7 @@ local function reg_lamp(suffix, nxt, light, brightness)
selection_box = slamp_cbox,
sounds = default.node_sound_wood_defaults(),
on_rotate = screwdriver.rotate_simple,
drop = "homedecor:standing_lamp_off",
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
node.name = "homedecor:standing_lamp_"..repl[suffix]
minetest.set_node(pos, node)
@ -533,6 +537,7 @@ homedecor.register("desk_lamp", {
node_box = dlamp_cbox,
walkable = false,
groups = {snappy=3, ud_param2_colorable = 1},
drop = "homedecor:desk_lamp",
after_place_node = function(pos, placer, itemstack, pointed_thing)
unifieddyes.fix_rotation_nsew(pos, placer, itemstack, pointed_thing)
unifieddyes.recolor_on_place(pos, placer, itemstack, pointed_thing)