Fix compatibility issue
This commit is contained in:
parent
594339ba9e
commit
0495e84f66
|
@ -86,6 +86,12 @@ task sourcesJar(type: Jar, dependsOn: classes) {
|
||||||
from sourceSets.main.allSource
|
from sourceSets.main.allSource
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gradle.taskGraph.whenReady {taskGraph ->
|
||||||
|
if (taskGraph.hasTask(build)) { /* when run remapJar, build, runClient, or runServer task */
|
||||||
|
autoIncrementBuildNumber()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
from "LICENSE"
|
from "LICENSE"
|
||||||
}
|
}
|
||||||
|
|
|
@ -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.0
|
mod_version=1.0.1
|
||||||
maven_group=dev.pfaff
|
maven_group=dev.pfaff
|
||||||
archives_base_name=thinksame
|
archives_base_name=thinksame
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,9 @@ import org.spongepowered.asm.mixin.Final;
|
||||||
import org.spongepowered.asm.mixin.Mixin;
|
import org.spongepowered.asm.mixin.Mixin;
|
||||||
import org.spongepowered.asm.mixin.Overwrite;
|
import org.spongepowered.asm.mixin.Overwrite;
|
||||||
import org.spongepowered.asm.mixin.Shadow;
|
import org.spongepowered.asm.mixin.Shadow;
|
||||||
|
import org.spongepowered.asm.mixin.injection.At;
|
||||||
|
import org.spongepowered.asm.mixin.injection.Inject;
|
||||||
|
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||||
|
|
||||||
// TODO: modify injection to not overwrite whole method.
|
// TODO: modify injection to not overwrite whole method.
|
||||||
@Mixin(Mouse.class)
|
@Mixin(Mouse.class)
|
||||||
|
@ -36,9 +39,10 @@ public abstract class MouseMixin {
|
||||||
|
|
||||||
@Shadow private boolean rightButtonClicked;
|
@Shadow private boolean rightButtonClicked;
|
||||||
|
|
||||||
@SuppressWarnings("OverwriteAuthorRequired")
|
@Inject(method = "onMouseButton", at = @At("HEAD"), cancellable = true)
|
||||||
@Overwrite
|
private void onMouseButton(long window, int button, int action, int mods, CallbackInfo ci) {
|
||||||
private void onMouseButton(long window, int button, int action, int mods) {
|
ci.cancel();
|
||||||
|
|
||||||
if (window == this.client.getWindow().getHandle()) {
|
if (window == this.client.getWindow().getHandle()) {
|
||||||
boolean bl = action == 1;
|
boolean bl = action == 1;
|
||||||
// if (MinecraftClient.IS_SYSTEM_MAC && button == 0) {
|
// if (MinecraftClient.IS_SYSTEM_MAC && button == 0) {
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
#Fri Jan 08 17:57:39 EST 2021
|
#Fri Jan 08 22:27:14 EST 2021
|
||||||
VERSION_BUILD=1
|
VERSION_BUILD=3
|
||||||
|
|
Loading…
Reference in New Issue