summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockIce.h
diff options
context:
space:
mode:
authorAlexander Harkness <me@bearbin.net>2020-04-03 22:24:49 +0200
committerGitHub <noreply@github.com>2020-04-03 22:24:49 +0200
commitba048e2101d42af53f2ac7a9a3ed04c194918136 (patch)
tree169c0e1f5f0cd306feadc00fd82b3079babf3088 /src/Blocks/BlockIce.h
parentQuick fix to make spawn eggs work (#4611) (diff)
downloadcuberite-ba048e2101d42af53f2ac7a9a3ed04c194918136.tar
cuberite-ba048e2101d42af53f2ac7a9a3ed04c194918136.tar.gz
cuberite-ba048e2101d42af53f2ac7a9a3ed04c194918136.tar.bz2
cuberite-ba048e2101d42af53f2ac7a9a3ed04c194918136.tar.lz
cuberite-ba048e2101d42af53f2ac7a9a3ed04c194918136.tar.xz
cuberite-ba048e2101d42af53f2ac7a9a3ed04c194918136.tar.zst
cuberite-ba048e2101d42af53f2ac7a9a3ed04c194918136.zip
Diffstat (limited to '')
-rw-r--r--src/Blocks/BlockIce.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Blocks/BlockIce.h b/src/Blocks/BlockIce.h
index 672288ca3..a39162d79 100644
--- a/src/Blocks/BlockIce.h
+++ b/src/Blocks/BlockIce.h
@@ -54,6 +54,8 @@ public:
auto blockTypeBelow = a_ChunkInterface.GetBlock(a_BlockPos.addedY(-1));
if (cBlockInfo::FullyOccupiesVoxel(blockTypeBelow) || IsBlockLiquid(blockTypeBelow))
{
+ // Setting air with FastSetBlock prevents SetBlock recursively calling OnBroken.
+ a_ChunkInterface.FastSetBlock(a_BlockPos, E_BLOCK_AIR, 0);
a_ChunkInterface.SetBlock(a_BlockPos, E_BLOCK_WATER, 0);
}
}