Skip to content

Commit

Permalink
Update the latest update suppression
Browse files Browse the repository at this point in the history
  • Loading branch information
s-yh-china committed Jun 12, 2023
1 parent 1771f7e commit 7d2b967
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions patches/server/0059-Fix-update-suppression-crash.patch
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,15 @@ index 38fe3c8ae7ee5788760f4c295936ccf3caa238b9..6f98e9a4cae7375c5e79d7717a260e98
for (final io.papermc.paper.chunk.SingleThreadChunkRegionManager regionManager : worldserver.getChunkSource().chunkMap.regionManagers) {
regionManager.recalculateRegions();
diff --git a/src/main/java/net/minecraft/world/level/redstone/NeighborUpdater.java b/src/main/java/net/minecraft/world/level/redstone/NeighborUpdater.java
index 19faa8f5f891c1ffbed0af8391dee8202433c447..0f8d5495f9f7306f3267a0741cb6a1a6d106c38e 100644
index 19faa8f5f891c1ffbed0af8391dee8202433c447..964b4506e0409019299485627eae9a1036d53a22 100644
--- a/src/main/java/net/minecraft/world/level/redstone/NeighborUpdater.java
+++ b/src/main/java/net/minecraft/world/level/redstone/NeighborUpdater.java
@@ -66,9 +66,17 @@ public interface NeighborUpdater {
@@ -65,10 +65,18 @@ public interface NeighborUpdater {
// CraftBukkit end
state.neighborChanged(world, pos, sourceBlock, sourcePos, notify);
// Spigot Start
} catch (StackOverflowError ex) {
- } catch (StackOverflowError ex) {
+ } catch (StackOverflowError | ClassCastException ex) {
+ // Leaves start - fix update suppression crash
+ if (top.leavesmc.leaves.LeavesConfig.updateSuppressionCrashFix) {
+ throw new top.leavesmc.leaves.util.UpdateSuppressionException();
Expand Down

0 comments on commit 7d2b967

Please sign in to comment.