1
0

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)
This commit is contained in:
Zach DeCook
2018-01-03 11:33:31 -05:00
committed by peterbell10
parent 177273006e
commit 68fc28857f
6 changed files with 122 additions and 0 deletions

View File

@@ -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