From 85cf908260c9be46e1d893edc041e0144d3ca255 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Thu, 31 May 2012 16:46:05 +0000 Subject: [PATCH] Fixed melons and pumpkins generating in a wrong place. git-svn-id: http://mc-server.googlecode.com/svn/trunk@530 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cChunk.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;