Skip to content

Commit

Permalink
Merge pull request GrimAnticheat#1795 from Axionize/button-pre-1.13-fix
Browse files Browse the repository at this point in the history
Fix Button hitboxes for pre-1.13 players
  • Loading branch information
SamB440 authored Nov 15, 2024
2 parents 5dc3e08 + 3c6742d commit c749a56
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/ac/grim/grimac/utils/collisions/HitboxData.java
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,13 @@ public enum HitboxData {
case WALL:
switch (facing) {
case WEST:
return new SimpleCollisionBox(0.0, 0.375, 0.3125, f2, 0.625, 0.6875, false);
case EAST:
return new SimpleCollisionBox(1.0 - f2, 0.375, 0.3125, 1.0, 0.625, 0.6875, false);
case EAST:
return new SimpleCollisionBox(0.0, 0.375, 0.3125, f2, 0.625, 0.6875, false);
case NORTH:
return new SimpleCollisionBox(0.3125, 0.375, 0.0, 0.6875, 0.625, f2, false);
case SOUTH:
return new SimpleCollisionBox(0.3125, 0.375, 1.0 - f2, 0.6875, 0.625, 1.0, false);
case SOUTH:
return new SimpleCollisionBox(0.3125, 0.375, 0.0, 0.6875, 0.625, f2, false);
}
case CEILING:
return new SimpleCollisionBox(0.3125, 1.0 - f2, 0.375, 0.6875, 1.0, 0.625, false);
Expand Down

0 comments on commit c749a56

Please sign in to comment.