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:
parent
042834b09d
commit
389fe31ace
12 changed files with 192 additions and 46 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue