mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Sound no longer extends Vector3
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user