SPIGOT-7447: Fix --forceUpgrade

This commit is contained in:
md_5 2023-08-05 10:01:59 +10:00
parent 6752f1d63e
commit 70e0bc050a
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -269,7 +269,7 @@
+ if (options.has("forceUpgrade")) { + if (options.has("forceUpgrade")) {
+ net.minecraft.server.Main.forceUpgrade(worldSession, DataConverterRegistry.getDataFixer(), options.has("eraseCache"), () -> { + net.minecraft.server.Main.forceUpgrade(worldSession, DataConverterRegistry.getDataFixer(), options.has("eraseCache"), () -> {
+ return true; + return true;
+ }, iregistry); + }, dimensions);
+ } + }
+ +
+ WorldDataServer iworlddataserver = worlddata; + WorldDataServer iworlddataserver = worlddata;