mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2024-11-14 19:04:59 -05:00
Send The Player Position After The Chunk Data
The players position was sent before sending the chunk which had now been switched.
This commit is contained in:
parent
a70eee40c8
commit
39b2fc2157
1 changed files with 8 additions and 8 deletions
|
@ -28,14 +28,6 @@ server.on('login', function(client) {
|
|||
maxPlayers: server.maxPlayers,
|
||||
reducedDebugInfo: false
|
||||
});
|
||||
client.write('position', {
|
||||
x: 15,
|
||||
y: 101,
|
||||
z: 15,
|
||||
yaw: 137,
|
||||
pitch: 0,
|
||||
flags: 0x00
|
||||
});
|
||||
client.write('map_chunk', {
|
||||
x: 0,
|
||||
z: 0,
|
||||
|
@ -44,4 +36,12 @@ server.on('login', function(client) {
|
|||
chunkData: chunk.dump(),
|
||||
blockEntities: []
|
||||
});
|
||||
client.write('position', {
|
||||
x: 15,
|
||||
y: 101,
|
||||
z: 15,
|
||||
yaw: 137,
|
||||
pitch: 0,
|
||||
flags: 0x00
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue