mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Chunk: Rename unload() to onUnload()
this more accurately describes what the function does.
This commit is contained in:
@ -691,9 +691,9 @@ class Chunk{
|
||||
}
|
||||
|
||||
/**
|
||||
* Unloads the chunk, closing entities and tiles.
|
||||
* Called when the chunk is unloaded, closing entities and tiles.
|
||||
*/
|
||||
public function unload() : void{
|
||||
public function onUnload() : void{
|
||||
foreach($this->getEntities() as $entity){
|
||||
if($entity instanceof Player){
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user