22 lines
1.3 KiB
Diff
22 lines
1.3 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: NanaChiyo0721 <nanachiyo0721@163.com>
|
|
Date: Sun, 26 Jul 2026 22:14:00 +0800
|
|
Subject: [PATCH] Fix wrong variable passing in ThreadedRegionizer
|
|
|
|
|
|
diff --git a/io/papermc/paper/threadedregions/ThreadedRegionizer.java b/io/papermc/paper/threadedregions/ThreadedRegionizer.java
|
|
index 3449918b5001bb39c541ce1168eac4acf9144e1f..a8333bfa5951537621620658dcd9544a8aca6aff 100644
|
|
--- a/io/papermc/paper/threadedregions/ThreadedRegionizer.java
|
|
+++ b/io/papermc/paper/threadedregions/ThreadedRegionizer.java
|
|
@@ -752,8 +752,8 @@ public final class ThreadedRegionizer<R extends ThreadedRegionizer.ThreadedRegio
|
|
final int x1 = CoordinateUtils.getChunkX(k1);
|
|
final int x2 = CoordinateUtils.getChunkX(k2);
|
|
|
|
- final int z1 = CoordinateUtils.getChunkZ(x1);
|
|
- final int z2 = CoordinateUtils.getChunkZ(x2);
|
|
+ final int z1 = CoordinateUtils.getChunkZ(k1); // Shiroha - Fix wrong variable passing in ThreadedRegionizer
|
|
+ final int z2 = CoordinateUtils.getChunkZ(k2); // Shiroha - Fix wrong variable passing in ThreadedRegionizer
|
|
|
|
final int zCompare = Integer.compare(z1, z2);
|
|
if (zCompare != 0) {
|