Skip to content

Commit

Permalink
Add armadillo dimensions, fixes #1641
Browse files Browse the repository at this point in the history
  • Loading branch information
SamB440 committed Aug 14, 2024
1 parent b14786a commit cea8169
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ private static float getWidthMinusBaby(GrimPlayer player, PacketEntity packetEnt
return 1.3f;
} else if (EntityTypes.BAT.equals(type) || EntityTypes.PARROT.equals(type) || EntityTypes.COD.equals(type) || EntityTypes.EVOKER_FANGS.equals(type) || EntityTypes.TROPICAL_FISH.equals(type) || EntityTypes.FROG.equals(type)) {
return 0.5f;
} else if (EntityTypes.BEE.equals(type) || EntityTypes.PUFFERFISH.equals(type) || EntityTypes.SALMON.equals(type) || EntityTypes.SNOW_GOLEM.equals(type) || EntityTypes.CAVE_SPIDER.equals(type)) {
} else if (EntityTypes.ARMADILLO.equals(type) || EntityTypes.BEE.equals(type) || EntityTypes.PUFFERFISH.equals(type) || EntityTypes.SALMON.equals(type) || EntityTypes.SNOW_GOLEM.equals(type) || EntityTypes.CAVE_SPIDER.equals(type)) {
return 0.7f;
} else if (EntityTypes.WITHER_SKELETON.equals(type)) {
return player.getClientVersion().isNewerThanOrEquals(ClientVersion.V_1_9) ? 0.7f : 0.72f;
Expand Down Expand Up @@ -233,7 +233,9 @@ public static double getPassengerRidingOffset(GrimPlayer player, PacketEntity pa
}
private static float getHeightMinusBaby(GrimPlayer player, PacketEntity packetEntity) {
final EntityType type = packetEntity.getType();
if (EntityTypes.AXOLOTL.equals(type)) {
if (EntityTypes.ARMADILLO.equals(type)) {
return 0.65f;
} else if (EntityTypes.AXOLOTL.equals(type)) {
return 0.42f;
} else if (EntityTypes.BEE.equals(type) || EntityTypes.DOLPHIN.equals(type) || EntityTypes.ALLAY.equals(type)) {
return 0.6f;
Expand Down

0 comments on commit cea8169

Please sign in to comment.