mirror of
https://github.com/Samsuik/Sakura.git
synced 2025-12-20 07:19:33 +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 ea15ef94540b78029c8f78021ace6998f62a701a..0572cf39080e549354b5adf437afc7dc3e8e824c 100644
|
|
--- a/src/main/java/net/minecraft/world/level/Level.java
|
|
+++ b/src/main/java/net/minecraft/world/level/Level.java
|
|
@@ -896,6 +896,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) {
|