Merge pull request #25 from steveb05/fix/uninitialized-velocity-packet

Initialize velocity variable for new wrapper entity
This commit is contained in:
Tofaa 2025-02-23 12:32:27 +04:00 committed by GitHub
commit debb91e642
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) {