mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-23 00:19:32 +01:00
Use up dye after using dye on sheep
This commit is contained in:
parent
c695cf2fec
commit
8078b528e6
1 changed files with 5 additions and 0 deletions
|
@ -168,6 +168,11 @@ print(item:get_name(), minetest.get_item_group(item:get_name(), "dye"))
|
|||
min = 1,
|
||||
max = 1,},
|
||||
}
|
||||
|
||||
if not minetest.setting_getbool("creative_mode") then
|
||||
item:take_item()
|
||||
clicker:get_inventory():set_stack("main", clicker:get_wield_index(), item)
|
||||
end
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue