Patch dropping entire stacks
This commit is contained in:
parent
d59884e1d2
commit
e38d66bbee
|
@ -6,7 +6,7 @@ minecraft_version=1.16.4
|
||||||
yarn_mappings=1.16.4+build.9
|
yarn_mappings=1.16.4+build.9
|
||||||
loader_version=0.10.8
|
loader_version=0.10.8
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
mod_version=1.0.1
|
mod_version=1.1.0
|
||||||
maven_group=dev.pfaff
|
maven_group=dev.pfaff
|
||||||
archives_base_name=thinksame
|
archives_base_name=thinksame
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,23 @@
|
||||||
|
package dev.pfaff.thinksame.mixin;
|
||||||
|
|
||||||
|
import net.minecraft.client.MinecraftClient;
|
||||||
|
import net.minecraft.client.gui.screen.Screen;
|
||||||
|
import net.minecraft.client.util.InputUtil;
|
||||||
|
import org.spongepowered.asm.mixin.Mixin;
|
||||||
|
import org.spongepowered.asm.mixin.injection.At;
|
||||||
|
import org.spongepowered.asm.mixin.injection.Inject;
|
||||||
|
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
|
||||||
|
|
||||||
|
@Mixin(Screen.class)
|
||||||
|
public abstract class ScreenMixin {
|
||||||
|
@Inject(method = "hasControlDown", at = @At("HEAD"), cancellable = true)
|
||||||
|
private static void hasControlDown(CallbackInfoReturnable<Boolean> ci) {
|
||||||
|
// if (MinecraftClient.IS_SYSTEM_MAC) {
|
||||||
|
// return InputUtil.isKeyPressed(MinecraftClient.getInstance().getWindow().getHandle(), 343) || InputUtil.isKeyPressed(MinecraftClient.getInstance().getWindow().getHandle(), 347);
|
||||||
|
// } else {
|
||||||
|
// return InputUtil.isKeyPressed(MinecraftClient.getInstance().getWindow().getHandle(), 341) || InputUtil.isKeyPressed(MinecraftClient.getInstance().getWindow().getHandle(), 345);
|
||||||
|
// }
|
||||||
|
|
||||||
|
ci.setReturnValue(InputUtil.isKeyPressed(MinecraftClient.getInstance().getWindow().getHandle(), 341) || InputUtil.isKeyPressed(MinecraftClient.getInstance().getWindow().getHandle(), 345));
|
||||||
|
}
|
||||||
|
}
|
|
@ -5,7 +5,8 @@
|
||||||
"compatibilityLevel": "JAVA_8",
|
"compatibilityLevel": "JAVA_8",
|
||||||
"mixins": [],
|
"mixins": [],
|
||||||
"client": [
|
"client": [
|
||||||
"MouseMixin"
|
"MouseMixin",
|
||||||
|
"ScreenMixin"
|
||||||
],
|
],
|
||||||
"injectors": {
|
"injectors": {
|
||||||
"defaultRequire": 1
|
"defaultRequire": 1
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
#Fri Jan 08 22:28:49 EST 2021
|
#Fri Mar 05 21:09:08 EST 2021
|
||||||
VERSION_BUILD=4
|
VERSION_BUILD=7
|
||||||
|
|
Loading…
Reference in New Issue