Merge pull request #21 from steveb05/fix/incorrect-velocity-packet
Avoid returning empty optional velocity for entity spawn packets
This commit is contained in:
commit
b8df40f6c9
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ public class WrapperEntity implements Tickable {
|
|||
}
|
||||
}
|
||||
if (veloX == 0 && veloY == 0 && veloZ == 0) {
|
||||
velocity = Optional.empty();
|
||||
velocity = Optional.of(Vector3d.zero());
|
||||
} else {
|
||||
velocity = Optional.of(new Vector3d(veloX, veloY, veloZ));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue