Skip to content
This repository has been archived by the owner on Dec 21, 2024. It is now read-only.

Commit

Permalink
More fixes for FAWE
Browse files Browse the repository at this point in the history
  • Loading branch information
Mgazul committed Dec 1, 2023
1 parent 3ca63f6 commit 8d2c796
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion patches/minecraft/net/minecraft/server/Main.java.patch
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
+ }
SaveFormat saveformat = SaveFormat.func_237269_a_(file1.toPath());
- SaveFormat.LevelSave saveformat$levelsave = saveformat.func_237274_c_(s);
+ SaveFormat.LevelSave saveformat$levelsave = saveformat.createAccess(s, Dimension.field_236053_b_);
+ SaveFormat.LevelSave saveformat$levelsave = saveformat.c(s, Dimension.field_236053_b_);
MinecraftServer.func_240777_a_(saveformat$levelsave);
DatapackCodec datapackcodec = saveformat$levelsave.func_237297_e_();
boolean flag = optionset.has(optionspec6);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
+ }
+
+ // CraftBukkit start
+ public SaveFormat.LevelSave createAccess(String saveName, RegistryKey<Dimension> dimensionType) throws IOException {
+ public SaveFormat.LevelSave c(String saveName, RegistryKey<Dimension> dimensionType) throws IOException {
+ return new SaveFormat.LevelSave(saveName, dimensionType);
+ }
+
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1052,7 +1052,7 @@ public World createWorld(WorldCreator creator) {

SaveFormat.LevelSave worldSession;
try {
worldSession = SaveFormat.createDefault(getWorldContainer().toPath()).createAccess(name, actualDimension);
worldSession = SaveFormat.createDefault(getWorldContainer().toPath()).c(name, actualDimension);
} catch (IOException ex) {
throw new RuntimeException(ex);
}
Expand Down

0 comments on commit 8d2c796

Please sign in to comment.