Rename loopPackets to filterLoopingPackets

This commit is contained in:
Scald
2023-11-28 23:42:31 +05:30
parent f3df122170
commit c713cf049d
2 changed files with 4 additions and 4 deletions

View File

@@ -130,7 +130,7 @@ public class Config {
public boolean commands = true;
public boolean connections = true;
public boolean packets = false;
public boolean loopPackets = false;
public boolean filterLoopingPackets = false;
}
@Getter

View File

@@ -127,7 +127,7 @@ public class GameSession {
// Log packet
if (LunarCore.getConfig().getLogOptions().packets) {
if (LunarCore.getConfig().getLogOptions().loopPackets && CmdIdUtils.LOOP_PACKETS.contains(opcode)) {
if (LunarCore.getConfig().getLogOptions().filterLoopingPackets && CmdIdUtils.LOOP_PACKETS.contains(opcode)) {
return;
}
@@ -156,7 +156,7 @@ public class GameSession {
// Log
if (LunarCore.getConfig().getLogOptions().packets) {
if (LunarCore.getConfig().getLogOptions().loopPackets && CmdIdUtils.LOOP_PACKETS.contains(packet.getOpcode())) {
if (LunarCore.getConfig().getLogOptions().filterLoopingPackets && CmdIdUtils.LOOP_PACKETS.contains(packet.getOpcode())) {
return;
}
@@ -175,7 +175,7 @@ public class GameSession {
// Log
if (LunarCore.getConfig().getLogOptions().packets) {
if (LunarCore.getConfig().getLogOptions().loopPackets && CmdIdUtils.LOOP_PACKETS.contains(cmdId)) {
if (LunarCore.getConfig().getLogOptions().filterLoopingPackets && CmdIdUtils.LOOP_PACKETS.contains(cmdId)) {
return;
}