summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockCauldron.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-05-29 17:58:40 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-05-29 17:58:40 +0200
commitcea3a8e7e8cbf45f709ec63a096cf07b92c87073 (patch)
treefb328b55909c4d0e8f861f8fddf86d10a2bf860f /src/Blocks/BlockCauldron.h
parentCmake system name not System name (diff)
downloadcuberite-cea3a8e7e8cbf45f709ec63a096cf07b92c87073.tar
cuberite-cea3a8e7e8cbf45f709ec63a096cf07b92c87073.tar.gz
cuberite-cea3a8e7e8cbf45f709ec63a096cf07b92c87073.tar.bz2
cuberite-cea3a8e7e8cbf45f709ec63a096cf07b92c87073.tar.lz
cuberite-cea3a8e7e8cbf45f709ec63a096cf07b92c87073.tar.xz
cuberite-cea3a8e7e8cbf45f709ec63a096cf07b92c87073.tar.zst
cuberite-cea3a8e7e8cbf45f709ec63a096cf07b92c87073.zip
Diffstat (limited to '')
-rw-r--r--src/Blocks/BlockCauldron.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/Blocks/BlockCauldron.h b/src/Blocks/BlockCauldron.h
index 41b79b6c3..8b5cd9ccb 100644
--- a/src/Blocks/BlockCauldron.h
+++ b/src/Blocks/BlockCauldron.h
@@ -58,6 +58,20 @@ public:
{
return true;
}
+
+ virtual void OnUpdate(cChunkInterface & a_ChunkInterface, cWorldInterface & a_WorldInterface, cBlockPluginInterface & a_PluginInterface, cChunk & a_Chunk, int a_RelX, int a_RelY, int a_RelZ) override
+ {
+ if (!a_WorldInterface.IsWeatherWet())
+ {
+ return;
+ }
+
+ NIBBLETYPE Meta = a_Chunk.GetMeta(a_RelX, a_RelY, a_RelZ);
+ if (Meta < 3)
+ {
+ a_Chunk.SetMeta(a_RelX, a_RelY, a_RelZ, Meta + 1);
+ }
+ }
} ;