mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Position: rename getWorldNonNull() to getWorld(), remove original getWorld()
This commit is contained in:
@ -103,7 +103,7 @@ class Bow extends Tool{
|
||||
}
|
||||
|
||||
$ev->getProjectile()->spawnToAll();
|
||||
$location->getWorldNonNull()->addSound($location, new BowShootSound());
|
||||
$location->getWorld()->addSound($location, new BowShootSound());
|
||||
}else{
|
||||
$entity->spawnToAll();
|
||||
}
|
||||
|
Reference in New Issue
Block a user