summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockFluid.h
diff options
context:
space:
mode:
authorSamuel Barney <samjbarney@gmail.com>2015-08-19 18:45:53 +0200
committerSamuel Barney <samjbarney@gmail.com>2015-08-19 18:48:21 +0200
commitcc83c4641d50818bf4fd830653438515ed5264d3 (patch)
treed4c4ebe5a88eaeba8ce9d53122c9eb92e297870c /src/Blocks/BlockFluid.h
parentMerge pull request #2439 from cuberite/AppveyorYml (diff)
downloadcuberite-cc83c4641d50818bf4fd830653438515ed5264d3.tar
cuberite-cc83c4641d50818bf4fd830653438515ed5264d3.tar.gz
cuberite-cc83c4641d50818bf4fd830653438515ed5264d3.tar.bz2
cuberite-cc83c4641d50818bf4fd830653438515ed5264d3.tar.lz
cuberite-cc83c4641d50818bf4fd830653438515ed5264d3.tar.xz
cuberite-cc83c4641d50818bf4fd830653438515ed5264d3.tar.zst
cuberite-cc83c4641d50818bf4fd830653438515ed5264d3.zip
Diffstat (limited to '')
-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;
+ }
} ;