Sound no longer extends Vector3

This commit is contained in:
Dylan K. Taylor
2018-12-16 14:26:42 +00:00
parent 3c520aa786
commit 20aaa8373a
23 changed files with 48 additions and 61 deletions

View File

@ -141,7 +141,7 @@ abstract class Door extends Transparent{
}
$this->level->setBlock($this, $this);
$this->level->addSound(new DoorSound($this));
$this->level->addSound($this, new DoorSound());
return true;
}

View File

@ -85,7 +85,7 @@ class FenceGate extends Transparent{
}
$this->getLevel()->setBlock($this, $this);
$this->level->addSound(new DoorSound($this));
$this->level->addSound($this, new DoorSound());
return true;
}

View File

@ -476,7 +476,7 @@ abstract class Liquid extends Transparent{
$ev->call();
if(!$ev->isCancelled()){
$this->level->setBlock($this, $ev->getNewState());
$this->level->addSound(new FizzSound($this->add(0.5, 0.5, 0.5), 2.6 + (lcg_value() - lcg_value()) * 0.8));
$this->level->addSound($this->add(0.5, 0.5, 0.5), new FizzSound(2.6 + (lcg_value() - lcg_value()) * 0.8));
}
return true;
}

View File

@ -89,7 +89,7 @@ class Trapdoor extends Transparent{
public function onActivate(Item $item, Player $player = null) : bool{
$this->open = !$this->open;
$this->level->setBlock($this, $this);
$this->level->addSound(new DoorSound($this));
$this->level->addSound($this, new DoorSound());
return true;
}