Map is automatically updated when jumping to a given spot.

Chunks are send one by one.
Packet_Chunks too big are discarded.
This commit is contained in:
ProfMobius committed 2013-10-31 21:25:54 +01:00
1 parent bc24c0e760
commit c19b4fa4e6
6 files changed
+87 -18

No files matched your search

@@ -57,7 +57,7 @@ public class OpisPacketHandler implements IPacketHandler {
else if (header == Packets.CHUNKS){
Packet_Chunks castedPacket = new Packet_Chunks(packet);
Mw.instance.chunkManager.forceChunks(castedPacket.chunks);
}
}
// SERVER RECEIVED PACKETS
else if (header == Packets.UNREGISTER_USER){
@@ -101,6 +101,7 @@ public class OpisPacketHandler implements IPacketHandler {
if (!list.isEmpty())
PacketDispatcher.sendPacketToPlayer( Packet_Chunks.create(castedPacket.dim, !world.provider.hasNoSky, list), player);
//PacketDispatcher.sendPacketToPlayer( new Packet56MapChunks(list), player);
}
}