mirror of
https://github.com/Melledy/LunarCore.git
synced 2025-12-13 05:44:36 +01:00
Rename loopPackets to filterLoopingPackets
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user