Skip to content

Commit

Permalink
Track spawn position
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianMichael committed Nov 17, 2024
1 parent 9954977 commit baba550
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,12 @@ public void register() {

final StoredEntityData data = tracker(wrapper.user()).entityData(entityId);
if (data != null) {
data.put(new LinkedEntityStorage());
final LinkedEntityStorage storage = new LinkedEntityStorage();
final double x = wrapper.get(Types.DOUBLE, 0);
final double y = wrapper.get(Types.DOUBLE, 1);
final double z = wrapper.get(Types.DOUBLE, 2);
storage.setPosition(x, y, z);
data.put(storage);
}
});
}
Expand Down

0 comments on commit baba550

Please sign in to comment.