1
0
Fork 0

Set block modified flag when node metadata inventory is modified

mutilcraft-mt53
Perttu Ahola 2011-11-25 15:19:42 +02:00
parent 3b3ca65562
commit 704d8a62bf
1 changed files with 6 additions and 8 deletions

View File

@ -3536,13 +3536,11 @@ void Server::inventoryModified(InventoryContext *c, std::string id)
if(meta) if(meta)
meta->inventoryModified(); meta->inventoryModified();
for(core::map<u16, RemoteClient*>::Iterator MapBlock *block = m_env.getMap().getBlockNoCreateNoEx(blockpos);
i = m_clients.getIterator(); if(block)
i.atEnd()==false; i++) block->raiseModified(MOD_STATE_WRITE_NEEDED);
{
RemoteClient *client = i.getNode()->getValue(); setBlockNotSent(blockpos);
client->SetBlockNotSent(blockpos);
}
return; return;
} }