From 2595ee0356ffc5a8a5cdb03de593556ca0bb52ca Mon Sep 17 00:00:00 2001
From: Bjarne Koll <LynxPlay101@gmail.com>
Date: Fri, 6 Oct 2023 22:34:00 +0200
Subject: [PATCH] Properly check water block when random ticking ice (#9804)

Readds a lost update to the shared mutable state in the random block
ticking optimisation.
---
 patches/server/Optimise-random-block-ticking.patch | 1 +
 1 file changed, 1 insertion(+)

diff --git a/patches/server/Optimise-random-block-ticking.patch b/patches/server/Optimise-random-block-ticking.patch
index 61ab89d98d..3f11e3e19b 100644
--- a/patches/server/Optimise-random-block-ticking.patch
+++ b/patches/server/Optimise-random-block-ticking.patch
@@ -202,6 +202,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
  
 -        if (biomebase.shouldFreeze(this, blockposition2)) {
 -            org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockFormEvent(this, blockposition2, Blocks.ICE.defaultBlockState(), null); // CraftBukkit
++        blockposition1.setY(downY);
 +        if (biomebase.shouldFreeze(this, blockposition1)) {
 +            org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockFormEvent(this, blockposition1, Blocks.ICE.defaultBlockState(), null); // CraftBukkit
          }