McRegion: Use MainLogger::getLogger()

another one bites the dust
This commit is contained in:
Dylan K. Taylor 2017-12-31 14:57:14 +00:00
parent 8a3f8b4706
commit 256bdf2581

View File

@ -457,7 +457,7 @@ class McRegion extends BaseLevelProvider{
try{
$this->regions[$index]->open();
}catch(CorruptedRegionException $e){
$logger = $this->level->getServer()->getLogger();
$logger = MainLogger::getLogger();
$logger->error("Corrupted region file detected: " . $e->getMessage());
$this->regions[$index]->close(false); //Do not write anything to the file