Skip to content

Commit

Permalink
1.20.4
Browse files Browse the repository at this point in the history
  • Loading branch information
melontini committed Jul 27, 2024
1 parent e016053 commit 855f97a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[libraries]
fabric-loader = { group = "net.fabricmc", name = "fabric-loader", version = "0.16.0" }
fabric-api = { group = "net.fabricmc.fabric-api", name = "fabric-api", version = "0.92.1+1.20.1" }
fabric-api = { group = "net.fabricmc.fabric-api", name = "fabric-api", version = "0.97.0+1.20.4" }

[plugins]
fabric-loom = { id = "fabric-loom", version = "1.7.2" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,12 @@ public class MinecraftClientMixin {
.get(RegistryKeys.WORLD_PRESET)
.entryOf(WorldPresets.FLAT)
.value()
.createDimensionsRegistryHolder(), null);
.createDimensionsRegistryHolder(),
null);
} else {
client.createIntegratedServerLoader().start(levelName, () -> client.setScreen(new TitleScreen()));
client
.createIntegratedServerLoader()
.start(levelName, () -> client.setScreen(new TitleScreen()));
}
} catch (Throwable t) {
CrashReport report = CrashReport.create(t, "Setting tests world");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@
public record ServerTestContext(MinecraftServer server) implements TestContext<MinecraftServer> {

public void sendCommand(String command) {
submitAndWait(
server -> {
server.getCommandManager().executeWithPrefix(server.getCommandSource(), command);
return null;
});
}
submitAndWait(server -> {
server.getCommandManager().executeWithPrefix(server.getCommandSource(), command);
return null;
});
}

public void waitForOverworldTicks(long ticks) {
waitFor("Overworld load", server -> server.getOverworld() != null, Duration.ofMinutes(30));
Expand Down

0 comments on commit 855f97a

Please sign in to comment.