summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-06-24 14:59:47 +0200
committerMattes D <github@xoft.cz>2015-06-24 14:59:47 +0200
commitc1780366b014aaa17e2b9cecb306396a01f9c2b4 (patch)
treefa245f574066d997b58ba11ad05400b5629f2fff /src
parentMerge pull request #2289 from cuberite/HangingFix (diff)
parentCall Neighbour changed handlers when a melon is created (diff)
downloadcuberite-c1780366b014aaa17e2b9cecb306396a01f9c2b4.tar
cuberite-c1780366b014aaa17e2b9cecb306396a01f9c2b4.tar.gz
cuberite-c1780366b014aaa17e2b9cecb306396a01f9c2b4.tar.bz2
cuberite-c1780366b014aaa17e2b9cecb306396a01f9c2b4.tar.lz
cuberite-c1780366b014aaa17e2b9cecb306396a01f9c2b4.tar.xz
cuberite-c1780366b014aaa17e2b9cecb306396a01f9c2b4.tar.zst
cuberite-c1780366b014aaa17e2b9cecb306396a01f9c2b4.zip
Diffstat (limited to 'src')
-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;
}
}