1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 08:35:20 +02: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
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;