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
public @NonNull UUID playerUuid() {
return playerEntity.getUuid();
public UUID playerUuid() {
return javaUuid(); // CommandSource allows nullable
}
@Override
public @NonNull GeyserSession connection() {
public GeyserSession connection() {
return this;
}