diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 120a82a..d2942f3 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -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" } diff --git a/src/main/java/me/melontini/handytests/mixin/client/MinecraftClientMixin.java b/src/main/java/me/melontini/handytests/mixin/client/MinecraftClientMixin.java index 6c6c907..e815adc 100644 --- a/src/main/java/me/melontini/handytests/mixin/client/MinecraftClientMixin.java +++ b/src/main/java/me/melontini/handytests/mixin/client/MinecraftClientMixin.java @@ -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"); diff --git a/src/main/java/me/melontini/handytests/server/ServerTestContext.java b/src/main/java/me/melontini/handytests/server/ServerTestContext.java index 1c74cdf..6f34cfa 100644 --- a/src/main/java/me/melontini/handytests/server/ServerTestContext.java +++ b/src/main/java/me/melontini/handytests/server/ServerTestContext.java @@ -12,12 +12,11 @@ public record ServerTestContext(MinecraftServer server) implements TestContext { 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));