Friction Boots now have step assist

This commit is contained in:
Aidan C. Brady 2014-02-01 22:02:50 -05:00
parent 10844201d2
commit efe03f6954
2 changed files with 24 additions and 0 deletions

View file

@ -19,6 +19,7 @@ import mekanism.common.PacketHandler;
import mekanism.common.PacketHandler.Transmission;
import mekanism.common.item.ItemConfigurator;
import mekanism.common.item.ItemElectricBow;
import mekanism.common.item.ItemFrictionBoots;
import mekanism.common.item.ItemGasMask;
import mekanism.common.item.ItemJetpack;
import mekanism.common.item.ItemJetpack.JetpackMode;
@ -309,6 +310,17 @@ public class ClientTickHandler implements ITickHandler
}
}
if(mc.thePlayer.getCurrentItemOrArmor(1) != null && mc.thePlayer.getCurrentItemOrArmor(1).getItem() instanceof ItemFrictionBoots)
{
mc.thePlayer.stepHeight = 1.002F;
}
else {
if(mc.thePlayer.stepHeight == 1.002F)
{
mc.thePlayer.stepHeight = 0.5F;
}
}
if(Mekanism.jetpackOn.contains(mc.thePlayer.username) != isJetpackOn(mc.thePlayer))
{
if(isJetpackOn(mc.thePlayer))

View file

@ -3,6 +3,7 @@ package mekanism.common;
import java.util.EnumSet;
import mekanism.common.PacketHandler.Transmission;
import mekanism.common.item.ItemFrictionBoots;
import mekanism.common.item.ItemGasMask;
import mekanism.common.item.ItemJetpack;
import mekanism.common.item.ItemJetpack.JetpackMode;
@ -86,6 +87,17 @@ public class CommonPlayerTickHandler implements ITickHandler
}
}
if(player.getCurrentItemOrArmor(1) != null && player.getCurrentItemOrArmor(1).getItem() instanceof ItemFrictionBoots)
{
player.stepHeight = 1.002F;
}
else {
if(player.stepHeight == 1.002F)
{
player.stepHeight = 0.5F;
}
}
if(isJetpackOn(player))
{
ItemJetpack jetpack = (ItemJetpack)player.getCurrentItemOrArmor(3).getItem();