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

changed node metadata format to better accomodate future needs and problems

This commit is contained in:
Perttu Ahola 2011-04-05 00:24:47 +03:00
parent 042834b09d
commit 389fe31ace
12 changed files with 192 additions and 46 deletions

View file

@ -2743,8 +2743,9 @@ void Server::inventoryModified(InventoryContext *c, std::string id)
assert(c->current_player);
v3s16 blockpos = getNodeBlockPos(p);
/*RemoteClient *client = getClient(c->current_player->peer_id);
client->SetBlockNotSent(blockpos);*/
NodeMetadata *meta = m_env.getMap().getNodeMetadata(p);
if(meta)
meta->inventoryModified();
for(core::map<u16, RemoteClient*>::Iterator
i = m_clients.getIterator();