InputEvent.RawMouseEvent fix (#6395)
This commit is contained in:
parent
c37e44efb6
commit
0d50b4c39f
1 changed files with 9 additions and 7 deletions
|
@ -1,12 +1,14 @@
|
||||||
--- a/net/minecraft/client/MouseHelper.java
|
--- a/net/minecraft/client/MouseHelper.java
|
||||||
+++ b/net/minecraft/client/MouseHelper.java
|
+++ b/net/minecraft/client/MouseHelper.java
|
||||||
@@ -72,16 +72,21 @@
|
@@ -66,6 +66,7 @@
|
||||||
if (!this.field_198051_p && flag) {
|
this.field_198042_g = -1;
|
||||||
this.func_198034_i();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
+ if (net.minecraftforge.client.ForgeHooksClient.onRawMouseClicked(p_198023_3_, p_198023_4_, p_198023_5_)) return;
|
+ if (net.minecraftforge.client.ForgeHooksClient.onRawMouseClicked(p_198023_3_, p_198023_4_, p_198023_5_)) return;
|
||||||
} else {
|
boolean[] aboolean = new boolean[]{false};
|
||||||
double d0 = this.field_198040_e * (double)this.field_198036_a.func_228018_at_().func_198107_o() / (double)this.field_198036_a.func_228018_at_().func_198105_m();
|
if (this.field_198036_a.field_213279_p == null) {
|
||||||
|
if (this.field_198036_a.field_71462_r == null) {
|
||||||
|
@@ -77,11 +78,15 @@
|
||||||
double d1 = this.field_198041_f * (double)this.field_198036_a.func_228018_at_().func_198087_p() / (double)this.field_198036_a.func_228018_at_().func_198083_n();
|
double d1 = this.field_198041_f * (double)this.field_198036_a.func_228018_at_().func_198087_p() / (double)this.field_198036_a.func_228018_at_().func_198083_n();
|
||||||
if (flag) {
|
if (flag) {
|
||||||
Screen.wrapScreenError(() -> {
|
Screen.wrapScreenError(() -> {
|
||||||
|
|
Loading…
Reference in a new issue