mirror of
https://github.com/Minestom/Minestom.git
synced 2025-02-05 15:01:46 +01:00
Cleanup
This commit is contained in:
parent
38dc50bb1a
commit
0a9ce664f3
@ -432,9 +432,9 @@ public abstract class Entity implements Viewable, EventHandler, DataContainer, P
|
||||
{
|
||||
|
||||
// Velocity
|
||||
boolean applyVelocity = false;
|
||||
boolean applyVelocity;
|
||||
// Non-player entities with either velocity or gravity enabled
|
||||
applyVelocity |= !PlayerUtils.isNettyClient(this) && (hasVelocity() || !hasNoGravity());
|
||||
applyVelocity = !PlayerUtils.isNettyClient(this) && (hasVelocity() || !hasNoGravity());
|
||||
// Players with a velocity applied (client is responsible for gravity)
|
||||
applyVelocity |= PlayerUtils.isNettyClient(this) && hasVelocity();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user