Skip to content

Commit

Permalink
- Updated for 1.20.4 compatibility
Browse files Browse the repository at this point in the history
- Fixed hitboxes accidentally being half the size they were meant to be
  • Loading branch information
BuildTools committed Jan 22, 2024
1 parent c614595 commit 2812963
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>com.magmaguy</groupId>
<artifactId>FreeMinecraftModels</artifactId>
<version>1.1.3-SNAPSHOT</version>
<version>1.1.4-SNAPSHOT</version>

<repositories>
<!-- This adds the Spigot Maven repository to the build -->
Expand Down Expand Up @@ -100,9 +100,9 @@
</dependency>

<dependency>
<groupId>com.magmaguy</groupId> <!-- Replace with the actual group ID -->
<artifactId>EasyMinecraftGoals-dist</artifactId> <!-- Replace with the actual artifact ID -->
<version>1.7.2-SNAPSHOT</version> <!-- Replace with the actual version -->
<groupId>com.magmaguy</groupId>
<artifactId>EasyMinecraftGoals-dist</artifactId>
<version>1.7.4-SNAPSHOT</version>
</dependency>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 2812963

Please sign in to comment.