Skip to content

Commit

Permalink
update to 1.20.2-pre3
Browse files Browse the repository at this point in the history
  • Loading branch information
camnwalter committed Sep 12, 2023
1 parent 1b29807 commit c8986e6
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
16 changes: 9 additions & 7 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
fabric_kotlin_version=1.10.10+kotlin.1.9.10
yacl_version=3.1.1+1.20
modmenu_version=8.0.0-beta.2
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
@@ -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) {

}
}

0 comments on commit c8986e6

Please sign in to comment.