mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-12 14:35:35 +00:00
Remove useless duplicate check
This commit is contained in:
parent
eac756470a
commit
7870a8672e
@ -302,7 +302,7 @@ class Level implements ChunkManager, Metadatable{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static function generateChunkLoaderId(ChunkLoader $loader) : int{
|
public static function generateChunkLoaderId(ChunkLoader $loader) : int{
|
||||||
if($loader->getLoaderId() === 0 or $loader->getLoaderId() === null or $loader->getLoaderId() === null){
|
if($loader->getLoaderId() === 0 or $loader->getLoaderId() === null){
|
||||||
return self::$chunkLoaderCounter++;
|
return self::$chunkLoaderCounter++;
|
||||||
}else{
|
}else{
|
||||||
throw new \InvalidStateException("ChunkLoader has a loader id already assigned: " . $loader->getLoaderId());
|
throw new \InvalidStateException("ChunkLoader has a loader id already assigned: " . $loader->getLoaderId());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user