mirror of
https://github.com/GTNewHorizons/Opis.git
synced 2026-11-25 14:34:37 +00:00
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:
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user