mirror of
https://github.com/GTNewHorizons/Electro-Magic-Tools.git
synced 2026-11-18 19:29:29 +00:00
Apply boot speed bonus unidirectionally
This commit is contained in:
1 parent
4d2d360be2
commit
224ae70609
1 file changed
+2
-2
@@ -122,7 +122,7 @@ public class ItemElectricBootsTraveller extends ItemArmor
|
||||
|
||||
@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 class ItemElectricBootsTraveller extends ItemArmor
|
||||
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
|
||||
|
||||
Reference in new issue
Block a user