delegate CommandSource#playerUuid impl in GeyserSession

This commit is contained in:
Konicai 2024-06-02 21:15:31 -05:00
parent cc94227b6e
commit c92ae75331

View file

@ -1431,12 +1431,12 @@ public class GeyserSession implements GeyserConnection, GeyserCommandSource {
} }
@Override @Override
public @NonNull UUID playerUuid() { public UUID playerUuid() {
return playerEntity.getUuid(); return javaUuid(); // CommandSource allows nullable
} }
@Override @Override
public @NonNull GeyserSession connection() { public GeyserSession connection() {
return this; return this;
} }