mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
Fixed redstone scheduled update
This commit is contained in:
parent
e0e724bcc3
commit
d071497747
3 changed files with 7 additions and 3 deletions
|
|
@ -32,7 +32,7 @@ class RedstoneOreBlock extends SolidBlock{
|
|||
|
||||
public function onUpdate($type){
|
||||
if($type === BLOCK_UPDATE_NORMAL or $type === BLOCK_UPDATE_TOUCH){
|
||||
$this->level->setBlock($this, GLOWING_REDSTONE_ORE, $this->getMetadata(), false);
|
||||
$this->level->setBlock($this, BlockAPI::get(GLOWING_REDSTONE_ORE, $this->meta), false);
|
||||
$this->level->scheduleBlockUpdate($this, mt_rand(45, 100));
|
||||
return BLOCK_UPDATE_WEAK;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue