Fix hiding player attacks in client, add option to hide cast as well (#896)

Tiny bit of refactoring as well
This commit is contained in:
Lucwousin
2019-07-05 23:10:02 +02:00
committed by Kyleeld
parent a8cf657e4c
commit 2367f7ee18
19 changed files with 187 additions and 69 deletions

View File

@@ -54,10 +54,11 @@ public class FontName {
signature = "(IIIZII)J",
garbageValue = "1039369805"
)
public static long method5637(int var0, int var1, int var2, boolean var3, int var4) {
long var5 = (long)((var0 & 127) << 0 | (var1 & 127) << 7 | (var2 & 3) << 14) | ((long)var4 & 4294967295L) << 17;
if (var3) {
var5 |= 65536L;
@Export("calculateTag")
public static long calculateTag(int x, int y, int type, boolean isNotInteractable, int identifier) {
long var5 = (long)((x & 0b1111111) << 0 | (y & 0b1111111) << 7 | (type & 0b11) << 14) | ((long)identifier & 0xffffffffL) << 17;
if (isNotInteractable) {
var5 |= 0x10000L;
}
return var5;