mirror of
https://github.com/GTNewHorizons/Opis.git
synced 2026-11-27 15:33:09 +00:00
All events are now an enum and send as a PlayerStatus.
All player updates are now sent as a PlayerStatus.
This commit is contained in:
1 parent
c093287b5c
commit
f6152c589a
6 files changed
+79
-58
No files matched your search
@@ -88,12 +88,6 @@ public enum OpisServerTickHandler{
|
||||
}
|
||||
}
|
||||
|
||||
ArrayList<DataThread> threads = new ArrayList<DataThread>();
|
||||
for (Thread t : Thread.getAllStackTraces().keySet()){
|
||||
threads.add(new DataThread().fill(t));
|
||||
}
|
||||
PacketManager.sendPacketToAllSwing(new NetDataList(Message.LIST_THREADS, threads));
|
||||
|
||||
// Dimension data update.
|
||||
ArrayList<DataDimension> dimData = new ArrayList<DataDimension>();
|
||||
for (int dim : DimensionManager.getIDs()){
|
||||
@@ -113,6 +107,12 @@ public enum OpisServerTickHandler{
|
||||
|
||||
// Two second timer
|
||||
if (timer2000.isDone() && PlayerTracker.INSTANCE.playersSwing.size() > 0){
|
||||
ArrayList<DataThread> threads = new ArrayList<DataThread>();
|
||||
for (Thread t : Thread.getAllStackTraces().keySet()){
|
||||
threads.add(new DataThread().fill(t));
|
||||
}
|
||||
PacketManager.sendPacketToAllSwing(new NetDataList(Message.LIST_THREADS, threads));
|
||||
|
||||
PacketManager.sendPacketToAllSwing(new NetDataList(Message.LIST_PLAYERS, EntityManager.INSTANCE.getAllPlayers()));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user