Paper icon indicating copy to clipboard operation
Paper copied to clipboard

--forceUpgrade fails to upgrade worlds when specifying --universe

Open kev626 opened this issue 5 years ago • 0 comments

Expected behavior

When the user specifies --universe, the --forceUpgrade option should properly find and upgrade the worlds:

java16 -Xmx${mem} -Xms${mem} $GC -Dpaper.debug-sync-loads=true -jar ${jar} -W worlds/ --forceUpgrade

Observed/Actual behavior

The server fails to upgrade the worlds. See log below. The worlds load perfectly fine, I have been using this startup option for a month exactly the same way without issues.

[00:30:26 INFO]: Preparing level "world"
[00:30:26 INFO]: [io.papermc.paper.world.ThreadedWorldUpgrader] Force upgrading world
[00:30:26 INFO]: [io.papermc.paper.world.ThreadedWorldUpgrader] Counting regionfiles for world
[00:30:26 INFO]: [io.papermc.paper.world.ThreadedWorldUpgrader] Found no regionfiles to convert for world world
[00:30:27 INFO]: [io.papermc.paper.world.ThreadedWorldUpgrader] Force upgrading world_nether
[00:30:27 INFO]: [io.papermc.paper.world.ThreadedWorldUpgrader] Counting regionfiles for world_nether
[00:30:27 INFO]: [io.papermc.paper.world.ThreadedWorldUpgrader] Found no regionfiles to convert for world world_nether
[00:30:27 INFO]: Preparing start region for dimension minecraft:overworld                                                                                       [00:30:27 INFO]: Preparing spawn area: 0%
[00:30:27 INFO]: Preparing spawn area: 0%
[00:30:27 INFO]: Time elapsed: 502 ms
[00:30:27 INFO]: Preparing start region for dimension minecraft:the_nether
[00:30:27 INFO]: Time elapsed: 370 ms

Steps/models to reproduce

Use startup flags: java16 -Xmx${mem} -Xms${mem} $GC -Dpaper.debug-sync-loads=true -jar ${jar} -W worlds/ --forceUpgrade

The world will fail to upgrade but load in fine.

Plugin list

N/A

Paper version

This server is running Paper version git-Paper-""9e07703"" (MC: 1.17) (Implementing API version 1.17-R0.1-SNAPSHOT) (Git: 9e07703 on master)

Agreements

  • [X] I am running the latest version of Paper available from https://papermc.io/downloads.
  • [X] I have searched for and ensured there isn't already an open issue regarding this.
  • [X] My version of Minecraft is supported by Paper.

Other

The relevant code is the first line of this function in patch 0688-Fix-and-optimise-world-force-upgrading.patch. Rather than checking the defined universe, it just assumes that the setting has been unmodified. This behavior is incorrect. image

kev626 avatar Jun 26 '21 01:06 kev626