Merge pull request #3368 from thebigsmileXD/patch-2

Added sound for opening/closing (FenceGates)
This commit is contained in:
Shoghi Cervantes 2015-08-11 12:58:34 +02:00
commit 5a626405e3

View File

@ -107,7 +107,7 @@ class FenceGate extends Transparent{
];
$this->meta = ($faces[$player instanceof Player ? $player->getDirection() : 0] & 0x03) | ((~$this->meta) & 0x04);
$this->getLevel()->setBlock($this, $this, true);
$this->level->addSound(new DoorSound($this));
return true;
}
}
}