mirror of
https://github.com/GTNewHorizons/Opis.git
synced 2026-11-25 14:34:37 +00:00
Chunk update is now properly sent in the timed update.
This commit is contained in:
1 parent
8378b8fc6d
commit
b4ca0fedd0
2 files changed
+4
-4
No files matched your search
@@ -77,9 +77,12 @@ public class OpisServerTickHandler implements ITickHandler {
|
||||
|
||||
OpisPacketHandler.sendPacketToAllSwing(Packet_DataValue.create(Message.VALUE_AMOUNT_UPLOAD, new SerialLong(PacketProfiler.instance().dataSizeOut)));
|
||||
OpisPacketHandler.sendPacketToAllSwing(Packet_DataValue.create(Message.VALUE_AMOUNT_DOWNLOAD, new SerialLong(PacketProfiler.instance().dataSizeIn)));
|
||||
OpisPacketHandler.sendPacketToAllSwing(Packet_DataValue.create(Message.VALUE_CHUNK_FORCED, new SerialInt(ChunkManager.getForcedChunkAmount())));
|
||||
OpisPacketHandler.sendPacketToAllSwing(Packet_DataValue.create(Message.VALUE_CHUNK_LOADED, new SerialInt(ChunkManager.getLoadedChunkAmount())));
|
||||
OpisPacketHandler.sendPacketToAllSwing(Packet_DataValue.create(Message.VALUE_TIMING_TICK, TickProfiler.instance().stats));
|
||||
|
||||
OpisPacketHandler.sendPacketToAllSwing(Packet_DataList.create(Message.LIST_PLAYERS, EntityManager.getAllPlayers()));
|
||||
|
||||
|
||||
for (Player player : PlayerTracker.instance().playersSwing){
|
||||
OpisPacketHandler.validateAndSend(Packet_DataValue.create(Message.STATUS_ACCESS_LEVEL, new SerialInt(PlayerTracker.instance().getPlayerAccessLevel(player).ordinal())), player);
|
||||
}
|
||||
|
||||
@@ -366,9 +366,6 @@ public class OpisPacketHandler implements IPacketHandler {
|
||||
|
||||
OpisPacketHandler.validateAndSend(Packet_DataValue.create(Message.STATUS_ACCESS_LEVEL, new SerialInt(PlayerTracker.instance().getPlayerAccessLevel(player).ordinal())), player);
|
||||
|
||||
OpisPacketHandler.validateAndSend(Packet_DataValue.create(Message.VALUE_CHUNK_FORCED, new SerialInt(ChunkManager.getForcedChunkAmount())), player);
|
||||
OpisPacketHandler.validateAndSend(Packet_DataValue.create(Message.VALUE_CHUNK_LOADED, new SerialInt(ChunkManager.getLoadedChunkAmount())), player);
|
||||
|
||||
// This portion is to get the proper filtered amounts depending on the player preferences.
|
||||
String name = ((EntityPlayer)player).getEntityName();
|
||||
boolean filtered = false;
|
||||
|
||||
Reference in new issue
Block a user