Skip to content

Commit

Permalink
Apply boot speed bonus unidirectionally
Browse files Browse the repository at this point in the history
  • Loading branch information
Sampsa authored and Dream-Master committed Feb 18, 2024
1 parent 4d2d360 commit 224ae70
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public int getVisDiscount(ItemStack stack, EntityPlayer player, Aspect aspect) {

@Override
public void onArmorTick(World world, EntityPlayer player, ItemStack itemStack) {
if (!player.capabilities.isFlying && player.moveForward > 0.0F) {
if (!player.capabilities.isFlying && (player.moveForward != 0.0F || player.moveStrafing != 0.0F)) {
if (player.worldObj.isRemote && !player.isSneaking()) {
if (!Thaumcraft.instance.entityEventHandler.prevStep.containsKey(player.getEntityId())) {
Thaumcraft.instance.entityEventHandler.prevStep.put(player.getEntityId(), player.stepHeight);
Expand All @@ -140,7 +140,7 @@ public void onArmorTick(World world, EntityPlayer player, ItemStack itemStack) {
bonus /= 2.0F;
}

player.moveFlying(0.0F, 1.0F, bonus);
player.moveFlying(player.moveStrafing, player.moveForward, bonus);
} else if (Hover.getHover(player.getEntityId())) {
// Base ItemBootsTraveller jumpBonus equals to jumpBonus of Electric Boots,
// so any other boots factor can be calculated via proportion method
Expand Down

0 comments on commit 224ae70

Please sign in to comment.