From ef170348aa24f569bfabf72fd0a715904b235fd1 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Wed, 3 Apr 2013 16:43:37 +0000 Subject: Added a debugging log for melon-growing to catch FS #349 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1355 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Chunk.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source') diff --git a/source/Chunk.cpp b/source/Chunk.cpp index ad534f634..9856e67b3 100644 --- a/source/Chunk.cpp +++ b/source/Chunk.cpp @@ -715,6 +715,11 @@ void cChunk::GrowMelonPumpkin(int a_RelX, int a_RelY, int a_RelZ, BLOCKTYPE a_Bl case E_BLOCK_GRASS: case E_BLOCK_FARMLAND: { + // DEBUG: This is here to catch FS #349 - melons growing over other crops. + LOG("Growing melon/pumpkin overwriting %s, growing on %s", + ItemTypeToString(BlockType[CheckType]).c_str(), + ItemTypeToString(Soil).c_str() + ); // Place a randomly-facing produce: UnboundedRelFastSetBlock(a_RelX + x, a_RelY, a_RelZ + z, ProduceType, (NIBBLETYPE)(a_TickRandom.randInt(4) % 4)); break; -- cgit v1.2.3