aboutsummaryrefslogtreecommitdiff
path: root/src/server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server.cpp')
-rw-r--r--src/server.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/server.cpp b/src/server.cpp
index 7266a6ddf..df712e07f 100644
--- a/src/server.cpp
+++ b/src/server.cpp
@@ -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();