diff options
author | Mattes D <github@xoft.cz> | 2015-06-24 14:59:47 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-06-24 14:59:47 +0200 |
commit | c1780366b014aaa17e2b9cecb306396a01f9c2b4 (patch) | |
tree | fa245f574066d997b58ba11ad05400b5629f2fff | |
parent | Merge pull request #2289 from cuberite/HangingFix (diff) | |
parent | Call Neighbour changed handlers when a melon is created (diff) | |
download | cuberite-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 |
-rw-r--r-- | src/Chunk.cpp | 3 |
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; } } |