fix: не загружался чанк [0;0]
если игрок находился не в этом чанке, то при заходе в игру чанк не загружался
This commit is contained in:
@@ -91,18 +91,6 @@ public class LoginHandler extends AbstractStateHandler implements LoginStateHand
|
|||||||
|
|
||||||
channel.flush();
|
channel.flush();
|
||||||
|
|
||||||
// First Chunk
|
|
||||||
//TODO необходимо отправлять больше начальных чанков
|
|
||||||
ChunkDataPacket pkt8 = new ChunkDataPacket();
|
|
||||||
Chunk chunk = player.getWorld().getChunk(player.getLocation());
|
|
||||||
pkt8.setX(chunk.getX());
|
|
||||||
pkt8.setZ(chunk.getZ());
|
|
||||||
pkt8.setChunk(chunk);
|
|
||||||
pkt8.setInitChunk(true);
|
|
||||||
channel.writeAndFlush(pkt8);
|
|
||||||
|
|
||||||
player.getLoadedChunks().add(CompactedCoords.compressXZ(0, 0));
|
|
||||||
|
|
||||||
// Player Position And Look
|
// Player Position And Look
|
||||||
PlayerPositionAndLookPacket pkt4 = new PlayerPositionAndLookPacket();
|
PlayerPositionAndLookPacket pkt4 = new PlayerPositionAndLookPacket();
|
||||||
pkt4.setLocation(player.getLocation());
|
pkt4.setLocation(player.getLocation());
|
||||||
|
|||||||
Reference in New Issue
Block a user