Totally stable optimizations that wont cause any problems at all.

This commit is contained in:
Daniel Mills
2021-07-14 16:40:20 -04:00
parent 886553a923
commit 7d423fa49d
260 changed files with 2329 additions and 3058 deletions

View File

@@ -53,8 +53,7 @@ public class BlockPosition {
return false;
}
if (o instanceof BlockPosition) {
BlockPosition ot = (BlockPosition) o;
if (o instanceof BlockPosition ot) {
return ot.x == x && ot.y == y && ot.z == z;
}
@@ -85,7 +84,7 @@ public class BlockPosition {
public static long toLong(int x, int y, int z) {
long var3 = 0L;
var3 |= (x & m4) << m3;
var3 |= (y & m5) << 0L;
var3 |= (y & m5);
var3 |= (z & m6) << m2;
return var3;
}