summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSafwat Halaby <SafwatHalaby@users.noreply.github.com>2015-12-12 10:13:17 +0100
committerSafwat Halaby <SafwatHalaby@users.noreply.github.com>2015-12-12 10:13:17 +0100
commit1dd12c07a83e92fd200349e52a16e1ebe6c8de2e (patch)
tree8b13064c08934e7ca3db04e4ecd0c99b03bf073a /src
parentMerge pull request #2721 from bmintz/patch-1 (diff)
parentNether wart only ages to 3 (diff)
downloadcuberite-1dd12c07a83e92fd200349e52a16e1ebe6c8de2e.tar
cuberite-1dd12c07a83e92fd200349e52a16e1ebe6c8de2e.tar.gz
cuberite-1dd12c07a83e92fd200349e52a16e1ebe6c8de2e.tar.bz2
cuberite-1dd12c07a83e92fd200349e52a16e1ebe6c8de2e.tar.lz
cuberite-1dd12c07a83e92fd200349e52a16e1ebe6c8de2e.tar.xz
cuberite-1dd12c07a83e92fd200349e52a16e1ebe6c8de2e.tar.zst
cuberite-1dd12c07a83e92fd200349e52a16e1ebe6c8de2e.zip
Diffstat (limited to 'src')
-rw-r--r--src/Blocks/BlockNetherWart.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Blocks/BlockNetherWart.h b/src/Blocks/BlockNetherWart.h
index b10150a92..10f4aa8f4 100644
--- a/src/Blocks/BlockNetherWart.h
+++ b/src/Blocks/BlockNetherWart.h
@@ -23,7 +23,7 @@ public:
{
cFastRandom rand;
- if (a_Meta == 0x7)
+ if (a_Meta == 0x3)
{
// Fully grown, drop the entire produce:
a_Pickups.push_back(cItem(E_ITEM_NETHER_WART, static_cast<char>(1 + (rand.NextInt(3) + rand.NextInt(3))) / 2, 0));
@@ -37,7 +37,7 @@ public:
virtual void OnUpdate(cChunkInterface & cChunkInterface, cWorldInterface & a_WorldInterface, cBlockPluginInterface & a_PluginInterface, cChunk & a_Chunk, int a_RelX, int a_RelY, int a_RelZ) override
{
NIBBLETYPE Meta = a_Chunk.GetMeta(a_RelX, a_RelY, a_RelZ);
- if ((Meta < 7) && (CanGrow(a_Chunk, a_RelX, a_RelY, a_RelZ) == paGrowth))
+ if ((Meta < 3) && (CanGrow(a_Chunk, a_RelX, a_RelY, a_RelZ) == paGrowth))
{
a_Chunk.FastSetBlock(a_RelX, a_RelY, a_RelZ, E_BLOCK_NETHER_WART, ++Meta);
}