From 224ae706091d2f18711ebd379ecbe099962ed45c Mon Sep 17 00:00:00 2001 From: Sampsa Date: Tue, 6 Feb 2024 15:19:15 +0200 Subject: [PATCH] Apply boot speed bonus unidirectionally --- .../java/emt/item/armor/boots/ItemElectricBootsTraveller.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/emt/item/armor/boots/ItemElectricBootsTraveller.java b/src/main/java/emt/item/armor/boots/ItemElectricBootsTraveller.java index 92b305c4..dd661ad9 100644 --- a/src/main/java/emt/item/armor/boots/ItemElectricBootsTraveller.java +++ b/src/main/java/emt/item/armor/boots/ItemElectricBootsTraveller.java @@ -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); @@ -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