Skip to content

Commit

Permalink
fix: use the default world instead of hardcoded "world"
Browse files Browse the repository at this point in the history
  • Loading branch information
sotterbeck committed Aug 12, 2024
1 parent bafc93b commit e8ed953
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ static FareGateKeyFactory provideFareGateNamespacedKey(JavaPlugin plugin) {
@Provides
@Singleton
static FareGateSignRepository provideFareGateSignRepository(JavaPlugin plugin, SignTypeKeyFactory signTypeKeyFactory, FareGateKeyFactory fareGateKeyFactory) {
World world = plugin.getServer().getWorld("world");
World world = plugin.getServer().getWorlds().getFirst();
return new SpigotFareGateSignRepository(world,
signTypeKeyFactory,
fareGateKeyFactory);
Expand All @@ -41,14 +41,14 @@ static FareGateSignRepository provideFareGateSignRepository(JavaPlugin plugin, S
@Provides
@Singleton
static GateRepository provideGateRepository(JavaPlugin plugin) {
World world = plugin.getServer().getWorld("world");
World world = plugin.getServer().getWorlds().getFirst();
return new SpigotGateRepository(world);
}

@Provides
@Singleton
static GateControlAdapter provideGateControlAdapter(JavaPlugin plugin) {
World world = plugin.getServer().getWorld("world");
World world = plugin.getServer().getWorlds().getFirst();
return new SpigotGateControlAdapter(world, plugin);
}

Expand Down

0 comments on commit e8ed953

Please sign in to comment.