Skip to content

Commit

Permalink
Fixed #220
Browse files Browse the repository at this point in the history
  • Loading branch information
Mgazul committed Jan 28, 2024
1 parent dad7350 commit f4164e5
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,10 @@ public abstract class MixinLevel implements LevelAccessor, AutoCloseable, Inject

@Inject(method = "<init>", at = @At("RETURN"))
private void banner$init(WritableLevelData info, ResourceKey<Level> dimension, RegistryAccess registryAccess, Holder<DimensionType> dimType, Supplier<ProfilerFiller> profiler, boolean isRemote, boolean isDebug, long seed, int maxNeighborUpdates, CallbackInfo ci) {
this.banner$setSpigotConfig(new SpigotWorldConfig(BukkitExtraConstants.getServer().storageSource.getDimensionPath(dimension).getFileName().toFile().getName()));
this.banner$setBannerConfig(new BannerWorldConfig(BukkitExtraConstants.getServer().storageSource.getDimensionPath(dimension).getFileName().toFile().getName()));
if ((Object) this instanceof ServerLevel) {
this.banner$setSpigotConfig(new SpigotWorldConfig(BukkitExtraConstants.getServer().storageSource.getDimensionPath(dimension).getFileName().toFile().getName()));
this.banner$setBannerConfig(new BannerWorldConfig(BukkitExtraConstants.getServer().storageSource.getDimensionPath(dimension).getFileName().toFile().getName()));
}
for (SpawnCategory spawnCategory : SpawnCategory.values()) {
if (CraftSpawnCategory.isValidForLimits(spawnCategory)) {
this.ticksPerSpawnCategory.put(spawnCategory, this.getCraftServer().getTicksPerSpawns(spawnCategory));
Expand Down

0 comments on commit f4164e5

Please sign in to comment.