mirror of
https://github.com/Minestom/Minestom.git
synced 2025-02-05 23:11:36 +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
|
// Velocity
|
||||||
boolean applyVelocity = false;
|
boolean applyVelocity;
|
||||||
// Non-player entities with either velocity or gravity enabled
|
// 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)
|
// Players with a velocity applied (client is responsible for gravity)
|
||||||
applyVelocity |= PlayerUtils.isNettyClient(this) && hasVelocity();
|
applyVelocity |= PlayerUtils.isNettyClient(this) && hasVelocity();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user