Port to 1.17
This commit is contained in:
parent
e38d66bbee
commit
ad84dcd16b
|
@ -2,11 +2,11 @@
|
|||
org.gradle.jvmargs=-Xmx1G
|
||||
# Fabric Properties
|
||||
# check these on https://modmuss50.me/fabric.html
|
||||
minecraft_version=1.16.4
|
||||
yarn_mappings=1.16.4+build.9
|
||||
loader_version=0.10.8
|
||||
minecraft_version=21w11a
|
||||
yarn_mappings=21w11a+build.16
|
||||
loader_version=0.11.3
|
||||
loomVersion=0.6-SNAPSHOT
|
||||
# Mod Properties
|
||||
mod_version=1.1.0
|
||||
maven_group=dev.pfaff
|
||||
archives_base_name=thinksame
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ package dev.pfaff.thinksame.mixin;
|
|||
import net.minecraft.client.MinecraftClient;
|
||||
import net.minecraft.client.Mouse;
|
||||
import net.minecraft.client.gui.screen.Screen;
|
||||
import net.minecraft.client.options.KeyBinding;
|
||||
import net.minecraft.client.option.KeyBinding;
|
||||
import net.minecraft.client.util.GlfwUtil;
|
||||
import net.minecraft.client.util.InputUtil;
|
||||
import org.spongepowered.asm.mixin.Final;
|
||||
|
@ -73,7 +73,7 @@ public abstract class MouseMixin {
|
|||
}
|
||||
|
||||
boolean[] bls = new boolean[]{false};
|
||||
if (this.client.overlay == null) {
|
||||
if (this.client.getOverlay() == null) {
|
||||
if (this.client.currentScreen == null) {
|
||||
if (!this.cursorLocked && bl) {
|
||||
this.lockCursor();
|
||||
|
@ -93,7 +93,7 @@ public abstract class MouseMixin {
|
|||
}
|
||||
}
|
||||
|
||||
if (!bls[0] && (this.client.currentScreen == null || this.client.currentScreen.passEvents) && this.client.overlay == null) {
|
||||
if (!bls[0] && (this.client.currentScreen == null || this.client.currentScreen.passEvents) && this.client.getOverlay() == null) {
|
||||
if (button == 0) {
|
||||
this.leftButtonClicked = bl;
|
||||
} else if (button == 2) {
|
||||
|
|
|
@ -26,6 +26,6 @@
|
|||
],
|
||||
"depends": {
|
||||
"fabricloader": ">=0.10.8",
|
||||
"minecraft": "1.16.4"
|
||||
"minecraft": "1.17.x"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#Fri Mar 05 21:09:08 EST 2021
|
||||
VERSION_BUILD=7
|
||||
#Mon Mar 22 23:55:52 EDT 2021
|
||||
VERSION_BUILD=8
|
||||
|
|
Loading…
Reference in New Issue