forked from Mirrorlandia_minetest/minetest
Fixed chest contents not immediately updating to all players
This commit is contained in:
parent
7df125c249
commit
042834b09d
@ -203,6 +203,9 @@ FIXME: Server sometimes goes into some infinite PeerNotFoundException loop
|
|||||||
TODO: Player health points
|
TODO: Player health points
|
||||||
- When player dies, throw items on map
|
- When player dies, throw items on map
|
||||||
|
|
||||||
|
FIXME: If something is removed from craftresult with a right click,
|
||||||
|
it is only possible to get one item from it should give 4
|
||||||
|
|
||||||
Objects:
|
Objects:
|
||||||
--------
|
--------
|
||||||
|
|
||||||
|
@ -2741,9 +2741,19 @@ void Server::inventoryModified(InventoryContext *c, std::string id)
|
|||||||
p.Y = stoi(fn.next(","));
|
p.Y = stoi(fn.next(","));
|
||||||
p.Z = stoi(fn.next(","));
|
p.Z = stoi(fn.next(","));
|
||||||
assert(c->current_player);
|
assert(c->current_player);
|
||||||
RemoteClient *client = getClient(c->current_player->peer_id);
|
|
||||||
v3s16 blockpos = getNodeBlockPos(p);
|
v3s16 blockpos = getNodeBlockPos(p);
|
||||||
client->SetBlockNotSent(blockpos);
|
|
||||||
|
/*RemoteClient *client = getClient(c->current_player->peer_id);
|
||||||
|
client->SetBlockNotSent(blockpos);*/
|
||||||
|
|
||||||
|
for(core::map<u16, RemoteClient*>::Iterator
|
||||||
|
i = m_clients.getIterator();
|
||||||
|
i.atEnd()==false; i++)
|
||||||
|
{
|
||||||
|
RemoteClient *client = i.getNode()->getValue();
|
||||||
|
client->SetBlockNotSent(blockpos);
|
||||||
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user