Skip to content

Commit

Permalink
Merge branch '2.0' of https://github.com/GrimAnticheat/Grim into 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
AoElite committed Nov 23, 2023
2 parents b21d972 + 7c58dc7 commit 56882b3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,9 @@ public void updateEntityMetadata(int entityID, List<EntityData> watchableObjects
if (sizeObject != null) {
Object value = sizeObject.getValue();
if (value instanceof Integer) {
((PacketEntitySizeable) entity).size = (int) value;
((PacketEntitySizeable) entity).size = Math.max((int) value, 1);
} else if (value instanceof Byte) {
((PacketEntitySizeable) entity).size = (byte) value;
((PacketEntitySizeable) entity).size = Math.max((byte) value, 1);
}
}
}
Expand Down

0 comments on commit 56882b3

Please sign in to comment.