summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-05-31 18:46:05 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-05-31 18:46:05 +0200
commit85cf908260c9be46e1d893edc041e0144d3ca255 (patch)
treedda70687b32f62b01b42fa0911294c5a2a09fad9 /source
parentMy first Lua plugin, yay! sTick allows a player to force a blocktick on any block by rightclicking it with a stick. (diff)
downloadcuberite-85cf908260c9be46e1d893edc041e0144d3ca255.tar
cuberite-85cf908260c9be46e1d893edc041e0144d3ca255.tar.gz
cuberite-85cf908260c9be46e1d893edc041e0144d3ca255.tar.bz2
cuberite-85cf908260c9be46e1d893edc041e0144d3ca255.tar.lz
cuberite-85cf908260c9be46e1d893edc041e0144d3ca255.tar.xz
cuberite-85cf908260c9be46e1d893edc041e0144d3ca255.tar.zst
cuberite-85cf908260c9be46e1d893edc041e0144d3ca255.zip
Diffstat (limited to 'source')
-rw-r--r--source/cChunk.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/cChunk.cpp b/source/cChunk.cpp
index 024e50adc..de8e3134c 100644
--- a/source/cChunk.cpp
+++ b/source/cChunk.cpp
@@ -656,7 +656,7 @@ void cChunk::TickMelonPumpkin(int a_RelX, int a_RelY, int a_RelZ, int a_BlockIdx
// Pick a direction in which to place the produce:
int x = 0, z = 0;
- int CheckType = a_TickRandom.randInt(4); // The index to the neighbors array which should be checked for emptiness
+ int CheckType = a_TickRandom.randInt(3); // The index to the neighbors array which should be checked for emptiness
switch (CheckType)
{
case 0: x = 1; break;