Automate creation of tiles when they are used to store block properties

This commit is contained in:
Dylan K. Taylor
2018-10-29 18:20:05 +00:00
parent 3f3bdaeba5
commit 1170b66fd5
8 changed files with 76 additions and 80 deletions

View File

@ -69,8 +69,8 @@ abstract class Door extends Transparent{
return 0b1111;
}
public function updateState() : void{
parent::updateState();
public function readStateFromWorld() : void{
parent::readStateFromWorld();
//copy door properties from other half
$other = $this->getSide($this->top ? Facing::DOWN : Facing::UP);