mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 16:51:42 +00:00
Remove redundant return values
why am I still up at 6AM
This commit is contained in:
parent
363b24c663
commit
a99d7f93d9
@ -199,12 +199,8 @@ class Anvil extends McRegion{
|
||||
}
|
||||
|
||||
protected function loadRegion($x, $z){
|
||||
if(isset($this->regions[$index = Level::chunkHash($x, $z)])){
|
||||
return true;
|
||||
if(!isset($this->regions[$index = Level::chunkHash($x, $z)])){
|
||||
$this->regions[$index] = new RegionLoader($this, $x, $z);
|
||||
}
|
||||
|
||||
$this->regions[$index] = new RegionLoader($this, $x, $z);
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user