Skip to content

Commit

Permalink
Don't return ManagedGameSpace...
Browse files Browse the repository at this point in the history
  • Loading branch information
Patbox committed Nov 11, 2024
1 parent 10071a4 commit 7aebcae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ static GameSpaceManager get() {

CompletableFuture<GameSpace> open(RegistryEntry<GameConfig<?>> config);

Collection<ManagedGameSpace> getOpenGameSpaces();
Collection<GameSpace> getOpenGameSpaces();

@Nullable
GameSpace byId(UUID id);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,9 @@ private ManagedGameSpace addGameSpace(RegistryEntry<GameConfig<?>> config, Regis
}

@Override
public Collection<ManagedGameSpace> getOpenGameSpaces() {
return this.gameSpaces;
public Collection<GameSpace> getOpenGameSpaces() {
//noinspection unchecked
return (Collection<GameSpace>) (Object) this.gameSpaces;
}

@Override
Expand Down

0 comments on commit 7aebcae

Please sign in to comment.