Skip to content

Commit e386b93

Browse files
authored
Fixed Reach false positive with Happy Ghast and clients under 1.21.6 (#2352)
1 parent 3fc985c commit e386b93

File tree

1 file changed

+4
-1
lines changed
  • common/src/main/java/ac/grim/grimac/checks/impl/combat

1 file changed

+4
-1
lines changed

common/src/main/java/ac/grim/grimac/checks/impl/combat/Reach.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,10 @@ public void onPacketReceive(final PacketReceiveEvent event) {
9595
// TODO: Remove when in front of via
9696
if (entity.type == EntityTypes.ARMOR_STAND && player.getClientVersion().isOlderThan(ClientVersion.V_1_8))
9797
return;
98-
98+
//Prevents Happy Ghast Reach false on 1.21.6+ servers with ViaBackwards set up
99+
if (entity.type == EntityTypes.HAPPY_GHAST && player.getClientVersion().isOlderThan(ClientVersion.V_1_21_6)) {
100+
return;
101+
}
99102
if (player.gamemode == GameMode.CREATIVE || player.gamemode == GameMode.SPECTATOR)
100103
return;
101104
if (player.inVehicle()) return;

0 commit comments

Comments
 (0)