Skip to content
Snippets Groups Projects
Commit 2a610b01 authored by Perttu Ahola's avatar Perttu Ahola
Browse files

Handle items with m_count==0 sanely when placing

parent cd030639
No related branches found
No related tags found
No related merge requests found
......@@ -3361,7 +3361,7 @@ void Server::ProcessData(u8 *data, u32 datasize, u16 peer_id)
if(g_settings->getBool("creative_mode") == false && ilist)
{
// Remove from inventory and send inventory
if(mitem->getCount() == 1)
if(mitem->getCount() <= 1)
ilist->deleteItem(item_i);
else
mitem->remove(1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment