We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7cf5564 commit 352d7a5Copy full SHA for 352d7a5
1 file changed
shreddedpaper-server/minecraft-patches/sources/net/minecraft/world/level/ChunkPos.java.patch
@@ -8,7 +8,7 @@
8
import io.netty.buffer.ByteBuf;
9
import java.util.Spliterators.AbstractSpliterator;
10
import java.util.function.Consumer;
11
-@@ -18,14 +_,18 @@
+@@ -18,14 +_,19 @@
12
import org.jspecify.annotations.Nullable;
13
14
// Paper start
@@ -19,6 +19,7 @@
19
+ public final int x; public int x() { return x; }
20
+ public final int z; public int z() { return z; }
21
+ public final long longKey; public long longKey() { return longKey; }
22
++ @Override public boolean equals(Object o) { return o instanceof ChunkPos other && other.x == this.x && other.z == this.z; }
23
public ChunkPos(int x, int z) {
24
- this(x, z, pack(x, z));
25
- }
0 commit comments