summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorSamuel Barney <samjbarney@gmail.com>2013-10-29 21:49:15 +0100
committerSamuel Barney <samjbarney@gmail.com>2013-10-29 21:49:15 +0100
commitf2e17981c56221af2be4dd11d3827e64c5aa1e51 (patch)
tree18c9c62e07579e62284607d2e6997eb651d7bfb8 /source
parentFixed bug where creative inventory didn't work. (diff)
downloadcuberite-f2e17981c56221af2be4dd11d3827e64c5aa1e51.tar
cuberite-f2e17981c56221af2be4dd11d3827e64c5aa1e51.tar.gz
cuberite-f2e17981c56221af2be4dd11d3827e64c5aa1e51.tar.bz2
cuberite-f2e17981c56221af2be4dd11d3827e64c5aa1e51.tar.lz
cuberite-f2e17981c56221af2be4dd11d3827e64c5aa1e51.tar.xz
cuberite-f2e17981c56221af2be4dd11d3827e64c5aa1e51.tar.zst
cuberite-f2e17981c56221af2be4dd11d3827e64c5aa1e51.zip
Diffstat (limited to '')
-rw-r--r--source/Blocks/BlockDirt.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/Blocks/BlockDirt.h b/source/Blocks/BlockDirt.h
index b2bc4756c..c694d79f6 100644
--- a/source/Blocks/BlockDirt.h
+++ b/source/Blocks/BlockDirt.h
@@ -37,7 +37,7 @@ public:
if (a_BlockY < cChunkDef::Height - 1)
{
BLOCKTYPE Above = a_World->GetBlock(a_BlockX, a_BlockY + 1, a_BlockZ);
- if (!g_BlockTransparent[Above] && !g_BlockOneHitDig[Above])
+ if ((!g_BlockTransparent[Above] && !g_BlockOneHitDig[Above]) || IsBlockWater(Above))
{
a_World->FastSetBlock(a_BlockX, a_BlockY, a_BlockZ, E_BLOCK_DIRT, 0);
return;
@@ -69,7 +69,7 @@ public:
NIBBLETYPE AboveMeta;
IsValid = a_World->GetBlockTypeMeta(a_BlockX + OfsX, a_BlockY + OfsY + 1, a_BlockZ + OfsZ, AboveDest, AboveMeta);
ASSERT(IsValid); // WTF - how did we get the DestBlock if AboveBlock is not valid?
- if (g_BlockOneHitDig[AboveDest] || g_BlockTransparent[AboveDest])
+ if ((g_BlockOneHitDig[AboveDest] || g_BlockTransparent[AboveDest]) && !IsBlockWater(AboveDest))
{
a_World->FastSetBlock(a_BlockX + OfsX, a_BlockY + OfsY, a_BlockZ + OfsZ, E_BLOCK_GRASS, 0);
}