diff --git a/build.gradle b/build.gradle index 634a95e..ddd4c0d 100644 --- a/build.gradle +++ b/build.gradle @@ -3,7 +3,7 @@ plugins { id 'eclipse' id 'idea' id 'maven-publish' - id 'net.neoforged.gradle.userdev' version '7.0.140' + id 'net.neoforged.gradle.userdev' version '7.0.143' } version = minecraft_version + "-" + mod_version diff --git a/gradle.properties b/gradle.properties index 3711583..cc0a1c3 100644 --- a/gradle.properties +++ b/gradle.properties @@ -15,7 +15,7 @@ minecraft_version=1.21 # as they do not follow standard versioning conventions. minecraft_version_range=[1.21, 1.22) # The Neo version must agree with the Minecraft version to get a valid artifact -neo_version=21.0.16-beta +neo_version=21.0.20-beta # The Neo version range can use any version of Neo as bounds or match the loader version range neo_version_range=[20.5.14,) # The loader version range can only use the major version of Neo/FML as bounds @@ -31,7 +31,7 @@ mod_name=Piglin Proliferation # The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default. mod_license=MIT for code, CC BY-NC-SA 4.0 for assets # The mod version. See https://semver.org/ -mod_version=2.0.0 +mod_version=2.0.1 # The group ID for the mod. It is only important when publishing as an artifact to a Maven repository. # This should match the base package used for the mod sources. # See https://maven.apache.org/guides/mini/guide-naming-conventions.html diff --git a/src/main/java/tallestred/piglinproliferation/client/models/PiglinAlchemistModel.java b/src/main/java/tallestred/piglinproliferation/client/models/PiglinAlchemistModel.java index a345724..6017f51 100644 --- a/src/main/java/tallestred/piglinproliferation/client/models/PiglinAlchemistModel.java +++ b/src/main/java/tallestred/piglinproliferation/client/models/PiglinAlchemistModel.java @@ -63,5 +63,10 @@ public void setupAnim(T pEntity, float pLimbSwing, float pLimbSwingAmount, float this.leftArm.xRot = -1.8F; } } + this.leftPants.copyFrom(this.leftLeg); + this.rightPants.copyFrom(this.rightLeg); + this.leftSleeve.copyFrom(this.leftArm); + this.rightSleeve.copyFrom(this.rightArm); + this.jacket.copyFrom(this.body); } } diff --git a/src/main/java/tallestred/piglinproliferation/common/entities/PiglinAlchemist.java b/src/main/java/tallestred/piglinproliferation/common/entities/PiglinAlchemist.java index 5265008..af6c728 100644 --- a/src/main/java/tallestred/piglinproliferation/common/entities/PiglinAlchemist.java +++ b/src/main/java/tallestred/piglinproliferation/common/entities/PiglinAlchemist.java @@ -260,8 +260,7 @@ public void performRangedAttack(LivingEntity target, float distanceFactor) { if (this.getItemShownOnOffhand().getItem() instanceof TippedArrowItem) itemstack = this.getItemShownOnOffhand(); AbstractArrow abstractarrowentity = ProjectileUtil.getMobArrow(this, itemstack, distanceFactor, this.getMainHandItem()); - if (this.getMainHandItem().getItem() instanceof net.minecraft.world.item.BowItem) - abstractarrowentity = ((net.minecraft.world.item.BowItem) this.getMainHandItem().getItem()).customArrow(abstractarrowentity, this.getMainHandItem()); + abstractarrowentity = ((net.minecraft.world.item.BowItem) this.getMainHandItem().getItem()).customArrow(abstractarrowentity, itemstack, this.getMainHandItem()); double d0 = target.getX() - this.getX(); double d1 = target.getY(0.3333333333333333D) - abstractarrowentity.getY(); double d2 = target.getZ() - this.getZ();