RobertHoueland / enchantments-plus

Minecraft fabric mod that adds new fun and useful enchantments
https://www.curseforge.com/minecraft/mc-mods/enchantments-plus-fabric
MIT License
3 stars 6 forks source link

LivingEntityMixin.java setting incorrect step height for nonPlayers #11

Closed witsar closed 10 months ago

witsar commented 11 months ago

Your Hiker enchant is causing issues with vehicles (such as Horses) by arbitarily setting currentEntity.setStepHeight(0.6F); in LivingEntityMixin.java. You can simply remove the else case to fix this bug.

RobertHoueland commented 10 months ago

I took a look at this a while back and thought I reproduced it but now I can't seem to. What version is this on? I tried equipping hiker and unequipped the boots and the horse functioned normally.

For now, I changed the else case to else if (currentEntity instanceof PlayerEntity) in the latest version v1.2.1 for Minecraft versions 1.20.1 and 1.20.2

Let me know if that solves it for you!

witsar commented 10 months ago

That was for the 1.19.2 version (https://github.com/RobertHoueland/enchantments-plus/blob/1.19.2/src/main/java/com/robdog777/enchantmentsplus/mixin/LivingEntityMixin.java), but i think 1.20 had the same issue. I fixed this locally on my side back then but thought i would let you know of this bug as well. Checking for PlayerEntity indeed solves this, thanks for taking care. Cheers

witsar commented 10 months ago

That was for the 1.19.2 version (https://github.com/RobertHoueland/enchantments-plus/blob/1.19.2/src/main/java/com/robdog777/enchantmentsplus/mixin/LivingEntityMixin.java), but i think 1.20 had the same issue. I fixed this locally on my side back then but thought i would let you know of this bug as well. Checking for PlayerEntity indeed solves this, thanks for taking care. Cheers