mirror of
https://github.com/danbulant/flying-squid
synced 2026-06-20 15:01:17 +00:00
More fixing
This commit is contained in:
parent
9e1d38329c
commit
f27a293c7a
1 changed files with 3 additions and 3 deletions
6
app.js
6
app.js
|
|
@ -31,7 +31,7 @@ server.on('login', function(client) {
|
|||
});
|
||||
|
||||
// send init data so client will start rendering world
|
||||
client.write('chat', {
|
||||
client.write('login', {
|
||||
entityId: client.id,
|
||||
levelType: 'default',
|
||||
gameMode: 0,
|
||||
|
|
@ -59,7 +59,7 @@ server.on('login', function(client) {
|
|||
|
||||
console.log("Written position, player should spawn");
|
||||
|
||||
client.write('flying', {
|
||||
client.write('update_time', {
|
||||
age: [0,0],
|
||||
time: [0,1]
|
||||
});
|
||||
|
|
@ -82,7 +82,7 @@ server.on('login', function(client) {
|
|||
});
|
||||
|
||||
server.on('error', function(error) {
|
||||
console.log('Error:', error);
|
||||
console.log('Error:', error.stack);
|
||||
});
|
||||
|
||||
server.on('listening', function() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue