summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockFluid.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Blocks/BlockFluid.h')
-rw-r--r--src/Blocks/BlockFluid.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/Blocks/BlockFluid.h b/src/Blocks/BlockFluid.h
index 56a2ad3c2..2d9adbab5 100644
--- a/src/Blocks/BlockFluid.h
+++ b/src/Blocks/BlockFluid.h
@@ -57,6 +57,17 @@ public:
ASSERT(!"Unhandled blocktype in fluid/water handler!");
return 0;
}
+
+ virtual bool CanSustainPlant(BLOCKTYPE a_Plant) override
+ {
+ return (
+ (a_Plant == E_BLOCK_CROPS) ||
+ (a_Plant == E_BLOCK_CARROTS) ||
+ (a_Plant == E_BLOCK_POTATOES) ||
+ (a_Plant == E_BLOCK_MELON_STEM) ||
+ (a_Plant == E_BLOCK_PUMPKIN_STEM)
+ );
+ }
} ;
@@ -144,6 +155,11 @@ public:
UNUSED(a_Meta);
return 4;
}
+
+ virtual bool CanSustainPlant(BLOCKTYPE a_Plant) override
+ {
+ return false;
+ }
} ;