mirror of
https://github.com/GTNewHorizons/Opis.git
synced 2026-11-12 16:27:49 +00:00
Added a ALL SelectedTab that will accept all messages (used for testing ?)
This commit is contained in:
1 parent
67bb9e0c77
commit
51bb8700da
4 files changed
+4
-5
No files matched your search
@@ -153,9 +153,6 @@ public enum OpisServerTickHandler{
|
||||
for (EntityPlayerMP player : PlayerTracker.INSTANCE.playersSwing){
|
||||
PacketManager.sendFullUpdate(player);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -137,6 +137,7 @@ public enum Message {
|
||||
}
|
||||
|
||||
public boolean isDisplayActive(SelectedTab tab){
|
||||
if (tab == SelectedTab.ALL) return true;
|
||||
if (this.tabEnum.contains(SelectedTab.ANY)) return true;
|
||||
if (this.tabEnum.contains(SelectedTab.NONE)) return false;
|
||||
if (this.tabEnum.contains(tab)) return true;
|
||||
|
||||
@@ -38,7 +38,7 @@ public class NexusInboundHandler extends ChannelInboundHandlerAdapter {
|
||||
RConHandler.fakePlayersNexus.put(fakePlayer, ctx);
|
||||
|
||||
PlayerTracker.INSTANCE.playersSwing.add(fakePlayer);
|
||||
PlayerTracker.INSTANCE.playerTab.put(fakePlayer, SelectedTab.SUMMARY);
|
||||
PlayerTracker.INSTANCE.playerTab.put(fakePlayer, SelectedTab.ALL);
|
||||
RConHandler.sendToPlayerNexus(new NetDataValue(Message.NEXUS_UUID, new NexusAuth(NexusClient.instance.uuid, NexusClient.instance.pass)), fakePlayer);
|
||||
RConHandler.sendToPlayerNexus(new NetDataValue(Message.STATUS_CURRENT_TIME, new SerialLong(System.currentTimeMillis())), fakePlayer);
|
||||
StringCache.INSTANCE.syncCache(fakePlayer);
|
||||
|
||||
@@ -25,5 +25,6 @@ public enum SelectedTab {
|
||||
CLIENTEVENTS,
|
||||
THREADS,
|
||||
ANY,
|
||||
NONE;
|
||||
NONE,
|
||||
ALL;
|
||||
}
|
||||
Reference in new issue
Block a user