one more battle won in the parrot war

This commit is contained in:
gnembon committed 2019-10-02 16:20:50 -03:00
1 parent 6f156f9fc2
commit 4fc8f112e9
1 file changed
+1 -1
@@ -51,7 +51,7 @@ public abstract class PlayerEntity_parrotMixin extends LivingEntity
private void onTickMovement(CallbackInfo ci)
{
boolean parrots_will_drop = !CarpetSettings.persistentParrots || this.abilities.invulnerable;
if (!this.world.isClient && ((parrots_will_drop && this.fallDistance > 0.5F) || this.isInWater() || (parrots_will_drop && this.hasVehicle())) || this.abilities.flying)
if (!this.world.isClient && ((parrots_will_drop && this.fallDistance > 0.5F) || this.isInWater() || this.abilities.flying || isSleeping())
{
this.dropShoulderEntities();
}