diff --git a/gradle.properties b/gradle.properties index 32a2624..7a708d4 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,16 +4,18 @@ org.gradle.parallel=true # Fabric Properties # check these on https://fabricmc.net/develop -minecraft_version=1.20.1 -yarn_mappings=1.20.1+build.9 -loader_version=0.14.21 +minecraft_version=1.20.2-pre3 +yarn_mappings=1.20.2-pre3+build.5 +loader_version=0.14.22 + +#Fabric api +fabric_version=0.88.3+1.20.2 # Mod Properties mod_version=1.1.0 archives_base_name=screenshots # Dependencies -fabric_version=0.85.0+1.20.1 -fabric_kotlin_version=1.10.0+kotlin.1.9.0 -yacl_version=3.1.0+1.20 -modmenu_version=7.2.1 \ No newline at end of file +fabric_kotlin_version=1.10.10+kotlin.1.9.10 +yacl_version=3.1.1+1.20 +modmenu_version=8.0.0-beta.2 \ No newline at end of file diff --git a/src/main/java/com/squagward/screenshots/mixin/KeyboardMixin.java b/src/main/java/com/squagward/screenshots/mixin/KeyboardMixin.java index ff2c670..1832051 100644 --- a/src/main/java/com/squagward/screenshots/mixin/KeyboardMixin.java +++ b/src/main/java/com/squagward/screenshots/mixin/KeyboardMixin.java @@ -51,7 +51,7 @@ public class KeyboardMixin { } } - @WrapWithCondition(method = "onKey", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/MinecraftClient;openPauseMenu(Z)V")) + @WrapWithCondition(method = "onKey", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/MinecraftClient;openGameMenu(Z)V")) private boolean screenshots$dontOpenPauseMenu(MinecraftClient client, boolean pause) { boolean shouldOpenPauseMenu = !Screenshots.INSTANCE.getDisplayScreenshotScreen(); Screenshots.INSTANCE.setDisplayScreenshotScreen(false); diff --git a/src/main/kotlin/com/squagward/screenshots/screen/ScreenshotScreen.kt b/src/main/kotlin/com/squagward/screenshots/screen/ScreenshotScreen.kt index 2aa7fe6..742c2cd 100644 --- a/src/main/kotlin/com/squagward/screenshots/screen/ScreenshotScreen.kt +++ b/src/main/kotlin/com/squagward/screenshots/screen/ScreenshotScreen.kt @@ -1,6 +1,11 @@ package com.squagward.screenshots.screen +import net.minecraft.client.gui.DrawContext import net.minecraft.client.gui.screen.Screen import net.minecraft.text.Text -class ScreenshotScreen : Screen(Text.literal("Screenshots")) +class ScreenshotScreen : Screen(Text.literal("Screenshots")) { + override fun renderBackground(context: DrawContext, mouseX: Int, mouseY: Int, delta: Float) { + + } +}