From 68fc28857fce6fdc4ebde6fa8ec4760e4a68e86e Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Wed, 3 Jan 2018 11:33:31 -0500 Subject: Concrete mixing (#4096) Adds a block handler for concrete powder and implements hardening to concrete. Concrete powder turns into concrete when: * It is next to water when it receives a block update * It falls onto a water block (even with Physics SandInstantFall=1) --- src/Simulator/SandSimulator.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/Simulator/SandSimulator.cpp') diff --git a/src/Simulator/SandSimulator.cpp b/src/Simulator/SandSimulator.cpp index 01e699b49..d10523c61 100644 --- a/src/Simulator/SandSimulator.cpp +++ b/src/Simulator/SandSimulator.cpp @@ -319,6 +319,11 @@ void cSandSimulator::DoInstantFall(cChunk * a_Chunk, int a_RelX, int a_RelY, int { BlockY = y + 1; } + else if ((FallingBlockType == E_BLOCK_CONCRETE_POWDER) && IsBlockWater(BlockType)) + { + FallingBlockType = E_BLOCK_CONCRETE; + BlockY = y; + } else { // Can fall further down -- cgit v1.2.3