mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 15:17:59 +01:00
Fixed creative flight being cancelled when bumping into non-solid blocks
This commit is contained in:
parent
64c5f2f3f1
commit
e6c3c25ac4
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ public class EntityPhysics<T extends Entity> implements Physics, Copieable<Entit
|
|||
entity.damage(DamageSource.OUT_OF_WORLD, 4.0F);
|
||||
}
|
||||
|
||||
entity.setOnGround(!entity.world.isAir(new BlockPos(entity.getX(), Math.floor(entity.getBoundingBox().maxY + 0.25), entity.getZ())));
|
||||
entity.setOnGround(entity.verticalCollision && entity.getVelocity().getY() > 0);
|
||||
}
|
||||
|
||||
float gravity = this.getGravityModifier();
|
||||
|
|
Loading…
Reference in a new issue