Fix a crash when placing a pile with dirt in it

This commit is contained in:
Mikko Tuumanen 2023-11-04 22:29:31 +02:00
parent 6e6d44c3a2
commit 819f24a622

View File

@ -862,7 +862,7 @@ local function after_place_pile(pos,placer,itemstack,pointed_thing)
while card ~= "" do
log("after_place_pile: i="..i.." card="..card)
pile_add_card(pile_inv,card)
descr=descr..", "..carddescriptions[card]
descr=descr..", "..(carddescriptions[card] or card)
i=i+1
card=stackmeta:get_string(i)
end