mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-04 00:55:14 +00:00
McRegion: Use MainLogger::getLogger()
another one bites the dust
This commit is contained in:
@ -457,7 +457,7 @@ class McRegion extends BaseLevelProvider{
|
|||||||
try{
|
try{
|
||||||
$this->regions[$index]->open();
|
$this->regions[$index]->open();
|
||||||
}catch(CorruptedRegionException $e){
|
}catch(CorruptedRegionException $e){
|
||||||
$logger = $this->level->getServer()->getLogger();
|
$logger = MainLogger::getLogger();
|
||||||
$logger->error("Corrupted region file detected: " . $e->getMessage());
|
$logger->error("Corrupted region file detected: " . $e->getMessage());
|
||||||
|
|
||||||
$this->regions[$index]->close(false); //Do not write anything to the file
|
$this->regions[$index]->close(false); //Do not write anything to the file
|
||||||
|
Reference in New Issue
Block a user