summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSafwat Halaby <SafwatHalaby@users.noreply.github.com>2015-12-13 15:12:39 +0100
committerSafwat Halaby <SafwatHalaby@users.noreply.github.com>2015-12-13 15:12:39 +0100
commitfec522aa03fc36b29584778540e490bfef38740b (patch)
tree1252935dc8cc42b717e69c10127077bba9dfa244 /src
parentMerge pull request #2708 from Gargaj/onuse (diff)
parentSet overgrown wart age to 3 (diff)
downloadcuberite-fec522aa03fc36b29584778540e490bfef38740b.tar
cuberite-fec522aa03fc36b29584778540e490bfef38740b.tar.gz
cuberite-fec522aa03fc36b29584778540e490bfef38740b.tar.bz2
cuberite-fec522aa03fc36b29584778540e490bfef38740b.tar.lz
cuberite-fec522aa03fc36b29584778540e490bfef38740b.tar.xz
cuberite-fec522aa03fc36b29584778540e490bfef38740b.tar.zst
cuberite-fec522aa03fc36b29584778540e490bfef38740b.zip
Diffstat (limited to '')
-rw-r--r--src/Blocks/BlockNetherWart.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Blocks/BlockNetherWart.h b/src/Blocks/BlockNetherWart.h
index 10f4aa8f4..0e3497688 100644
--- a/src/Blocks/BlockNetherWart.h
+++ b/src/Blocks/BlockNetherWart.h
@@ -18,7 +18,7 @@ public:
: Super(a_BlockType, false)
{
}
-
+
virtual void ConvertToPickups(cItems & a_Pickups, NIBBLETYPE a_Meta) override
{
cFastRandom rand;
@@ -41,6 +41,10 @@ public:
{
a_Chunk.FastSetBlock(a_RelX, a_RelY, a_RelZ, E_BLOCK_NETHER_WART, ++Meta);
}
+ else if (Meta > 3) // In older versions of cuberite, there was a bug which made wart grow too much. This check fixes previously saved buggy warts.
+ {
+ a_Chunk.FastSetBlock(a_RelX, a_RelY, a_RelZ, E_BLOCK_NETHER_WART, 3);
+ }
}
virtual bool CanBeAt(cChunkInterface & a_ChunkInterface, int a_RelX, int a_RelY, int a_RelZ, const cChunk & a_Chunk) override