mirror of
https://github.com/Samsuik/Sakura.git
synced 2025-12-21 07:49:29 +00:00
23 lines
1017 B
Diff
23 lines
1017 B
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Samsuik <kfian294ma4@gmail.com>
|
|
Date: Sun, 24 Dec 2023 16:56:39 +0000
|
|
Subject: [PATCH] Fix paper findSupportingBlock not updating last chunk
|
|
coordinates
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/world/level/Level.java b/src/main/java/net/minecraft/world/level/Level.java
|
|
index e4783deff8eafdb6e84bbe8e5f636dd5f4ad10d8..20ca6517a15e755b2faf0e1892e5a33b0210ae31 100644
|
|
--- a/src/main/java/net/minecraft/world/level/Level.java
|
|
+++ b/src/main/java/net/minecraft/world/level/Level.java
|
|
@@ -887,6 +887,10 @@ public abstract class Level implements LevelAccessor, AutoCloseable {
|
|
|
|
if (chunkDiff != 0) {
|
|
lastChunk = chunkProvider.getChunkAtIfLoadedImmediately(newChunkX, newChunkZ);
|
|
+ // Sakura start
|
|
+ lastChunkX = newChunkX;
|
|
+ lastChunkZ = newChunkZ;
|
|
+ // Sakura end
|
|
}
|
|
|
|
if (lastChunk == null) {
|