PaperMC / PaperMC/Paper

Paper 1.19.1 breaks Multiverse-Core (Same as Issue #7850)

Open
#8,241 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: accepted type: bug version: 1.19
Dominant language
Java
Stars
12.7k
Forks
3.5k
Avg merge
3d 13h
Merged PRs (30d)
11

Description

Expected behavior

Multiverse should be able to recognize and load world keys and files

Observed/Actual behavior

Fails to load worlds because of duplicate keys existing

Console Error:

[18:04:27 WARN]: java.lang.IllegalArgumentException: Cannot create a world with key minecraft:briar_briarcraft_nether and name briar_briarcraft_nether one (or both) already match a world that exists
[18:04:27 WARN]: at org.bukkit.craftbukkit.v1_19_R1.CraftServer.createWorld(CraftServer.java:1155)
[18:04:27 WARN]: at org.bukkit.Bukkit.createWorld(Bukkit.java:767)
[18:04:27 WARN]: at org.bukkit.WorldCreator.createWorld(WorldCreator.java:474)
[18:04:27 WARN]: at Multiverse-Core-4.3.2-SNAPSHOT-870.jar//com.onarandombox.MultiverseCore.utils.WorldManager.doLoad(WorldManager.java:486)
[18:04:27 WARN]: at Multiverse-Core-4.3.2-SNAPSHOT-870.jar//com.onarandombox.MultiverseCore.utils.WorldManager.doLoad(WorldManager.java:467)
[18:04:27 WARN]: at Multiverse-Core-4.3.2-SNAPSHOT-870.jar//com.onarandombox.MultiverseCore.utils.WorldManager.doLoad(WorldManager.java:442)
[18:04:27 WARN]: at Multiverse-Core-4.3.2-SNAPSHOT-870.jar//com.onarandombox.MultiverseCore.utils.WorldManager.loadWorlds(WorldManager.java:770)
[18:04:27 WARN]: at Multiverse-Core-4.3.2-SNAPSHOT-870.jar//com.onarandombox.MultiverseCore.MultiverseCore.onEnable(MultiverseCore.java:313)
[18:04:27 WARN]: at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264)
[18:04:27 WARN]: at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:370)
[18:04:27 WARN]: at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:542)
[18:04:27 WARN]: at org.bukkit.craftbukkit.v1_19_R1.CraftServer.enablePlugin(CraftServer.java:563)
[18:04:27 WARN]: at org.bukkit.craftbukkit.v1_19_R1.CraftServer.enablePlugins(CraftServer.java:477)
[18:04:27 WARN]: at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:636)
[18:04:27 WARN]: at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:422)
[18:04:27 WARN]: at net.minecraft.server.dedicated.DedicatedServer.e(DedicatedServer.java:306)
[18:04:27 WARN]: at net.minecraft.server.MinecraftServer.v(MinecraftServer.java:1124)
[18:04:27 WARN]: at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:305)
[18:04:27 WARN]: at java.base/java.lang.Thread.run(Thread.java:833)

Steps/models to reproduce

Add Multiverse to a server with existing root world containing a datapack and preloaded linked dimensions to the root.

Plugin and Datapack List

Paper 1.19.1#109
Multiverse-Core-4.3.2-SNAPSHOT-87
briarcraft.zip
0

Paper version

[18:27:50 INFO]: Checking version, please wait...
[18:27:51 INFO]: This server is running Paper version git-Paper-109 (MC: 1.19.1) (Implementing API version 1.19.1-R0.1-SNAPSHOT) (Git: 69950d5)
You are running the latest version
Previous version: git-Paper-94 (MC: 1.19.1)

Other

The issue and error seem to exactly match a 1.18.2 issue that was patched and has possibly resurfaced.

See Issues:
#7850 and #7851

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the Paper stack trace in CraftServer.createWorld and the Multiverse WorldManager.doLoad calls, then compare this report with issues #7850 and #7851. Reproduce using a root world with a datapack and preloaded linked dimensions on Paper 1.19.1. Done means Multiverse can load the worlds without the duplicate-key failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend, game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.