Skip to content

Commit 352d7a5

Browse files
committed
Fix ChunkPos issues
1 parent 7cf5564 commit 352d7a5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

shreddedpaper-server/minecraft-patches/sources/net/minecraft/world/level/ChunkPos.java.patch

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import io.netty.buffer.ByteBuf;
99
import java.util.Spliterators.AbstractSpliterator;
1010
import java.util.function.Consumer;
11-
@@ -18,14 +_,18 @@
11+
@@ -18,14 +_,19 @@
1212
import org.jspecify.annotations.Nullable;
1313

1414
// Paper start
@@ -19,6 +19,7 @@
1919
+ public final int x; public int x() { return x; }
2020
+ public final int z; public int z() { return z; }
2121
+ 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; }
2223
public ChunkPos(int x, int z) {
2324
- this(x, z, pack(x, z));
2425
- }

0 commit comments

Comments
 (0)