Skip to content

Commit

Permalink
fix hiker bug
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertHoueland committed Dec 20, 2023
1 parent e81aa13 commit 653ca67
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ minecraft_version=1.19.2
yarn_mappings=1.19.2+build.1
loader_version=0.14.8
# Mod Properties
mod_version=1.2.0+1.19.2
mod_version=1.2.1+1.19.2
maven_group=net.robdog777
archives_base_name=enchantments-plus-fabric
# Dependencies
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import net.minecraft.entity.LivingEntity;
import net.minecraft.entity.effect.StatusEffectInstance;
import net.minecraft.entity.effect.StatusEffects;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import org.spongepowered.asm.mixin.Mixin;
Expand Down Expand Up @@ -53,7 +54,7 @@ protected void tick(CallbackInfo ci) {
int hikerLevel = EnchantmentHelper.getEquipmentLevel(EnchantmentsPlus.HIKER, currentEntity);
if (hikerLevel > 0 && EnchantmentsPlus.CONFIG_HOLDER.getConfig().enableHiker) {
this.stepHeight = hikerLevel + 0.1F;
} else {
} else if (currentEntity instanceof PlayerEntity) {
this.stepHeight = 0.6F;
}

Expand Down

0 comments on commit 653ca67

Please sign in to comment.