mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 03:39:17 +00:00
Made the Soujourner's Sash not aggressively set the player's step height again. This fixes it not resetting when it's unequipped. Closes #781
This commit is contained in:
1 parent
668535abaf
commit
43c65f11da
1 file changed
+8
-2
@@ -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,17 @@ public class ItemTravelBelt extends ItemBauble implements IBaubleRender {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onEquippedOrLoadedIntoWorld(ItemStack stack, EntityLivingBase player) {
|
||||
super.onEquippedOrLoadedIntoWorld(stack, player);
|
||||
player.stepHeight = 1F;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onUnequipped(ItemStack stack, EntityLivingBase player) {
|
||||
player.stepHeight = 0.5F;
|
||||
}
|
||||
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
ResourceLocation getRenderTexture() {
|
||||
return texture;
|
||||
|
||||
Reference in new issue
Block a user