Merge pull request #25 from steveb05/fix/uninitialized-velocity-packet
Initialize velocity variable for new wrapper entity
This commit is contained in:
commit
debb91e642
1 changed files with 1 additions and 0 deletions
|
@ -52,6 +52,7 @@ public class WrapperEntity implements Tickable {
|
||||||
this.passengers = ConcurrentHashMap.newKeySet();
|
this.passengers = ConcurrentHashMap.newKeySet();
|
||||||
this.location = new Location(0, 0, 0, 0, 0);
|
this.location = new Location(0, 0, 0, 0, 0);
|
||||||
this.viewerRules = new CopyOnWriteArrayList<>();
|
this.viewerRules = new CopyOnWriteArrayList<>();
|
||||||
|
this.velocity = Vector3d.zero();
|
||||||
}
|
}
|
||||||
|
|
||||||
public WrapperEntity(int entityId, EntityType entityType) {
|
public WrapperEntity(int entityId, EntityType entityType) {
|
||||||
|
|
Loading…
Reference in a new issue