Fix Elytra upgrade causing server to think you're always flying (#780)
This commit is contained in:
parent
95983732b1
commit
ffeb0309a8
|
@ -339,11 +339,6 @@ public class ItemLivingArmour extends ItemArmor implements ISpecialArmor, IMeshP
|
||||||
LivingArmourUpgrade upgrade = ItemLivingArmour.getUpgradeFromNBT(Constants.Mod.MODID + ".upgrade.elytra", chestStack);
|
LivingArmourUpgrade upgrade = ItemLivingArmour.getUpgradeFromNBT(Constants.Mod.MODID + ".upgrade.elytra", chestStack);
|
||||||
if (upgrade instanceof LivingArmourUpgradeElytra)
|
if (upgrade instanceof LivingArmourUpgradeElytra)
|
||||||
{
|
{
|
||||||
if (spPlayer.motionY > -0.5D)
|
|
||||||
{
|
|
||||||
BloodMagicPacketHandler.INSTANCE.sendToServer(new PlayerFallDistancePacketProcessor(1));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (spPlayer.movementInput.jump && !spPlayer.onGround && spPlayer.motionY < 0.0D && !spPlayer.capabilities.isFlying)
|
if (spPlayer.movementInput.jump && !spPlayer.onGround && spPlayer.motionY < 0.0D && !spPlayer.capabilities.isFlying)
|
||||||
{
|
{
|
||||||
if (spPlayer.motionY > -0.5D)
|
if (spPlayer.motionY > -0.5D)
|
||||||
|
|
Loading…
Reference in a new issue