mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-09 17:51:05 +01:00
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4591 Reviewed-by: Mikita Wiśniewski <rudzik8@protonmail.com> Co-authored-by: goodspeed <goodspeed@mailo.cat> Co-committed-by: goodspeed <goodspeed@mailo.cat>
This commit is contained in:
parent
5e6e4967f0
commit
ee4d1efaa5
1 changed files with 9 additions and 1 deletions
|
@ -1051,7 +1051,15 @@ for i=1,8 do
|
|||
local itemstring = itemstack:get_name()
|
||||
local itemcount = itemstack:get_count()
|
||||
local fakestack = ItemStack(itemstring.." "..itemcount)
|
||||
fakestack:set_name("mcl_core:snow_"..math.min(8, (i+g)))
|
||||
if i+g < 8 then
|
||||
fakestack:set_name("mcl_core:snow_"..(i+g))
|
||||
else
|
||||
-- To stack `mcl_core:snow_8', just replacing it with `mcl_core:snowblock' Issue#4483
|
||||
if i+g == 9 then
|
||||
fakestack:set_count(itemcount + 1)
|
||||
end
|
||||
fakestack:set_name("mcl_core:snowblock")
|
||||
end
|
||||
itemstack = minetest.item_place(fakestack, placer, pointed_thing)
|
||||
minetest.sound_play(mcl_sounds.node_sound_snow_defaults().place, {pos = pointed_thing.under}, true)
|
||||
itemstack:set_name(itemstring)
|
||||
|
|
Loading…
Reference in a new issue