#61 Remote map chunk storage and equesting working, waiting for renderer

This commit is contained in:
Danielv123 committed 2017-12-10 20:55:53 +01:00
1 parent 8fce9a2cfe
commit eba982836c
3 files changed
+40 -5

No files matched your search

+4 -1
View File
@@ -21,7 +21,10 @@ class remoteMap {
this.socket.emit("registerSlaveMapper", {instanceID: this.config.unique});
});
this.socket.on("getChunk", req => {
this.chunkMap.getChunk(req.x, req.y).then(chunk => {
chunk.requesterID = req.requesterID;
this.socket.emit("sendChunk", chunk);
});
});
this.messageInterface("/silent-command game.print('"+moduleConfig.name+" version "+moduleConfig.version+" enabled')");