mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-21 12:42:50 +00:00
Make the travel belts actively try to change step height rather than on equip only. Closes #516.
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user