Flatten still liquid blocks into a liquid block property

This commit is contained in:
Dylan K. Taylor
2018-11-30 16:06:35 +00:00
parent ed531c0009
commit a2253e9e7d
6 changed files with 39 additions and 100 deletions

View File

@ -101,9 +101,13 @@ class BlockFactory{
self::registerBlock(new Bedrock());
self::registerBlock(new Water());
self::registerBlock(new StillWater());
$b = new Water();
$b->setStill();
self::registerBlock($b); //flattening hack
self::registerBlock(new Lava());
self::registerBlock(new StillLava());
$b = new Lava();
$b->setStill();
self::registerBlock($b); //flattening hack
self::registerBlock(new Sand(Block::SAND, 0, "Sand"));
self::registerBlock(new Sand(Block::SAND, 1, "Red Sand"));