Make the travel belts actively try to change step height rather than on equip only. Closes #516.

This commit is contained in:
Lizbeth Rika committed 2015-02-02 18:35:56 +00:00
1 parent 96e676c2c7
commit 684f23c354
1 file changed
+1 -6
@@ -70,7 +70,7 @@ public class ItemTravelBelt extends ItemBauble implements IBaubleRender {
if(player.isSneaking())
player.stepHeight = 0.50001F; // Not 0.5F because that is the default
else if(player.stepHeight == 0.50001F)
else if(player.stepHeight <= 0.50001F)
player.stepHeight = 1F;
}
}
@@ -88,11 +88,6 @@ public class ItemTravelBelt extends ItemBauble implements IBaubleRender {
}
}
@Override
public void onEquippedOrLoadedIntoWorld(ItemStack stack, EntityLivingBase player) {
player.stepHeight = 1F;
}
@Override
public void onUnequipped(ItemStack stack, EntityLivingBase player) {
player.stepHeight = 0.5F;