diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-04-04 18:29:44 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-04-04 18:29:44 +0300 |
commit | 042834b09d8d2d814204244e3a64f5fb1cb7582c (patch) | |
tree | eee9642a157bb7968f5cfceaad77e77a2fec7ca3 | |
parent | 7df125c249dc9b99b66f047a395106c2038eb00e (diff) | |
download | minetest-042834b09d8d2d814204244e3a64f5fb1cb7582c.tar.gz minetest-042834b09d8d2d814204244e3a64f5fb1cb7582c.tar.bz2 minetest-042834b09d8d2d814204244e3a64f5fb1cb7582c.zip |
Fixed chest contents not immediately updating to all players
-rw-r--r-- | src/main.cpp | 3 | ||||
-rw-r--r-- | src/server.cpp | 14 |
2 files changed, 15 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index 49246ec89..df5bca21e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -203,6 +203,9 @@ FIXME: Server sometimes goes into some infinite PeerNotFoundException loop TODO: Player health points
- 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:
--------
diff --git a/src/server.cpp b/src/server.cpp index a70c42a35..7266a6ddf 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -2741,9 +2741,19 @@ void Server::inventoryModified(InventoryContext *c, std::string id) p.Y = stoi(fn.next(",")); p.Z = stoi(fn.next(",")); assert(c->current_player); - RemoteClient *client = getClient(c->current_player->peer_id); 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; } |