summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authortycho <work.tycho@gmail.com>2015-06-23 22:16:38 +0200
committertycho <work.tycho@gmail.com>2015-06-23 22:27:37 +0200
commitb02b262a7cedeb3114ca0d539e2affcfbea80af9 (patch)
treec58ce956008ec83923891f18880600a5e6ba06b5 /src
parentMerge pull request #2285 from cuberite/MelonFix (diff)
downloadcuberite-b02b262a7cedeb3114ca0d539e2affcfbea80af9.tar
cuberite-b02b262a7cedeb3114ca0d539e2affcfbea80af9.tar.gz
cuberite-b02b262a7cedeb3114ca0d539e2affcfbea80af9.tar.bz2
cuberite-b02b262a7cedeb3114ca0d539e2affcfbea80af9.tar.lz
cuberite-b02b262a7cedeb3114ca0d539e2affcfbea80af9.tar.xz
cuberite-b02b262a7cedeb3114ca0d539e2affcfbea80af9.tar.zst
cuberite-b02b262a7cedeb3114ca0d539e2affcfbea80af9.zip
Diffstat (limited to '')
-rw-r--r--src/Chunk.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Chunk.cpp b/src/Chunk.cpp
index 3897ea3a8..a3192f638 100644
--- a/src/Chunk.cpp
+++ b/src/Chunk.cpp
@@ -1035,6 +1035,9 @@ void cChunk::GrowMelonPumpkin(int a_RelX, int a_RelY, int a_RelZ, BLOCKTYPE a_Bl
Meta
);
VERIFY(UnboundedRelFastSetBlock(a_RelX + x, a_RelY, a_RelZ + z, ProduceType, Meta));
+ auto Absolute = RelativeToAbsolute(Vector3i{a_RelX + x, a_RelY, a_RelZ + z}, m_PosX, m_PosZ);
+ cChunkInterface ChunkInterface(this->GetWorld()->GetChunkMap());
+ cBlockHandler::NeighborChanged(ChunkInterface, Absolute.x, Absolute.y, Absolute.z);
break;
}
}