From 2812963346fafc5a4f24de29be1c88f360ec7468 Mon Sep 17 00:00:00 2001 From: BuildTools Date: Mon, 22 Jan 2024 13:40:43 +0000 Subject: [PATCH] - Updated for 1.20.4 compatibility - Fixed hitboxes accidentally being half the size they were meant to be --- pom.xml | 8 ++++---- .../freeminecraftmodels/customentity/DynamicEntity.java | 2 +- src/main/resources/plugin.yml | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pom.xml b/pom.xml index 921e36f..8246278 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.magmaguy FreeMinecraftModels - 1.1.3-SNAPSHOT + 1.1.4-SNAPSHOT @@ -100,9 +100,9 @@ - com.magmaguy - EasyMinecraftGoals-dist - 1.7.2-SNAPSHOT + com.magmaguy + EasyMinecraftGoals-dist + 1.7.4-SNAPSHOT diff --git a/src/main/java/com/magmaguy/freeminecraftmodels/customentity/DynamicEntity.java b/src/main/java/com/magmaguy/freeminecraftmodels/customentity/DynamicEntity.java index a3bcbc2..0465a7a 100644 --- a/src/main/java/com/magmaguy/freeminecraftmodels/customentity/DynamicEntity.java +++ b/src/main/java/com/magmaguy/freeminecraftmodels/customentity/DynamicEntity.java @@ -56,7 +56,7 @@ public void spawn(LivingEntity entity) { super.spawn(); syncSkeletonWithEntity(); if (getSkeletonBlueprint().getHitbox() != null) - NMSManager.getAdapter().setCustomHitbox(entity, (float) getSkeletonBlueprint().getHitbox().getWidth() / 2f, (float) getSkeletonBlueprint().getHitbox().getHeight() / 2f, true); + NMSManager.getAdapter().setCustomHitbox(entity, (float) getSkeletonBlueprint().getHitbox().getWidth(), (float) getSkeletonBlueprint().getHitbox().getHeight(), true); } private void syncSkeletonWithEntity() { diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 9b390e2..2e2abff 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,5 +1,5 @@ name: FreeMinecraftModels -version: '1.1.3' +version: '1.1.4' main: com.magmaguy.freeminecraftmodels.FreeMinecraftModels api-version: 1.19 prefix: FreeMinecraftModels