mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
Fixed #1598 spawning on a index-corrupted Anvil chunk
This commit is contained in:
parent
828f7f1590
commit
7dd4a843c6
@ -81,7 +81,9 @@ class RegionLoader{
|
||||
public function readChunk($x, $z, $generate = true){
|
||||
$index = self::getChunkOffset($x, $z);
|
||||
if($index < 0 or $index >= 4096){
|
||||
return false;
|
||||
//Regenerate chunk due to corruption
|
||||
$this->locationTable[$index][0] = 0;
|
||||
$this->locationTable[$index][1] = 1;
|
||||
}
|
||||
|
||||
if(!$this->isChunkGenerated($index)){
|
||||
|
Loading…
x
Reference in New Issue
Block a user