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

@ -77,9 +77,9 @@ class ChorusFruit extends Food{
}
//Sounds are broadcasted at both source and destination
$level->addSound(new EndermanTeleportSound($consumer->asVector3()));
$consumer->teleport(new Vector3($x + 0.5, $y + 1, $z + 0.5));
$level->addSound(new EndermanTeleportSound($consumer->asVector3()));
$level->addSound($consumer->asVector3(), new EndermanTeleportSound());
$consumer->teleport($target = new Vector3($x + 0.5, $y + 1, $z + 0.5));
$level->addSound($target, new EndermanTeleportSound());
break;
}