Skip to content

Commit

Permalink
Dont charge world startup (#10)
Browse files Browse the repository at this point in the history
Co-authored-by: Huynh Tien <[email protected]>
  • Loading branch information
Euphillya and HSGamer authored Oct 22, 2024
1 parent dac463b commit f313f34
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/main/java/me/hsgamer/morefoworld/WorldUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.craftbukkit.CraftWorld;
import org.bukkit.craftbukkit.generator.CraftWorldInfo;
import org.bukkit.event.world.WorldLoadEvent;
import org.bukkit.generator.BiomeProvider;
import org.bukkit.generator.ChunkGenerator;
import org.bukkit.generator.WorldInfo;
Expand Down Expand Up @@ -223,6 +224,11 @@ public static FeedbackWorld addWorld(WorldCreator creator) {

internal.setSpawnSettings(true, true);

console.prepareLevels(internal.getChunkSource().chunkMap.progressListener, internal);
io.papermc.paper.threadedregions.RegionizedServer.getInstance().addWorld(internal);

Bukkit.getPluginManager().callEvent(new WorldLoadEvent(internal.getWorld())); // Call Event

return Feedback.SUCCESS.toFeedbackWorld(internal.getWorld());
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/paper-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: '${name}'
version: '${version}'
main: me.hsgamer.morefoworld.MoreFoWorld
api-version: '${apiVersion}'
load: STARTUP
load: POSTWORLD
authors: [HSGamer]
description: '${description}'
folia-supported: true

0 comments on commit f313f34

Please sign in to comment.