mirror of
https://github.com/Threnklyn/MinecraftChat.git
synced 2026-06-01 18:58:27 +02:00
Run the interval on the clientside instead of the server side
This commit is contained in:
@@ -4,6 +4,7 @@ module.exports = function(socket) {
|
||||
socket.mcbot.on('spawn', function() {
|
||||
var pos = socket.mcbot.entity.position;
|
||||
socket.emit('buffer:info', 'Spawned at X:' + pos.x + ', Y:' + pos.y + ', Z:' + pos.z);
|
||||
socket.emit('bot:players', socket.mcbot.players);
|
||||
socket.emit('bot:spawn');
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user