1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-11 17:51:04 +00:00

Merge remote-tracking branch 'queatz/furnace-is-not-out-nor-can-rat-escape'

This commit is contained in:
Perttu Ahola 2011-08-30 14:24:07 +03:00
commit 87b9e5467d
4 changed files with 55 additions and 13 deletions

View file

@ -2446,7 +2446,7 @@ void Server::ProcessData(u8 *data, u32 datasize, u16 peer_id)
if(g_settings.getBool("creative_mode") == false)
{
// Skip if inventory has no free space
if(ilist->getUsedSlots() == ilist->getSize())
if(ilist->roomForItem(item) == false)
{
dout_server<<"Player inventory has no free space"<<std::endl;
return;