Skip to content

Commit ea1f161

Browse files
committed
Disable PacketOrderP, fixes #2327
1 parent c323cf0 commit ea1f161

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

common/src/main/java/ac/grim/grimac/checks/Check.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,8 @@ public static boolean isTransaction(PacketTypeCommon packetType) {
170170
}
171171

172172
public static boolean isAsync(PacketTypeCommon packetType) {
173-
return packetType == PacketType.Play.Client.KEEP_ALIVE;
173+
return packetType == PacketType.Play.Client.KEEP_ALIVE
174+
|| packetType == PacketType.Play.Client.CHUNK_BATCH_ACK;
174175
}
175176

176177
public boolean isUpdate(PacketTypeCommon packetType) {

common/src/main/java/ac/grim/grimac/manager/CheckManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public CheckManager(GrimPlayer player) {
125125
.put(PacketOrderC.class, new PacketOrderC(player))
126126
.put(PacketOrderD.class, new PacketOrderD(player))
127127
.put(PacketOrderO.class, new PacketOrderO(player))
128-
.put(PacketOrderP.class, new PacketOrderP(player))
128+
// .put(PacketOrderP.class, new PacketOrderP(player))
129129
.put(SprintA.class, new SprintA(player))
130130
.put(VehicleA.class, new VehicleA(player))
131131
.put(VehicleB.class, new VehicleB(player))

0 commit comments

Comments
 (0)