diff --git a/patches/server/0059-Fix-update-suppression-crash.patch b/patches/server/0059-Fix-update-suppression-crash.patch index 29604f93..43528ad3 100644 --- a/patches/server/0059-Fix-update-suppression-crash.patch +++ b/patches/server/0059-Fix-update-suppression-crash.patch @@ -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();