mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-05 17:36:12 +00:00
Throw exception when null chunk is passed to a Tile/Entity
This commit is contained in:
@ -64,7 +64,7 @@ abstract class Tile extends Position{
|
||||
public $tickTimer;
|
||||
|
||||
public function __construct(FullChunk $chunk, Compound $nbt){
|
||||
if($chunk->getProvider() === null){
|
||||
if($chunk === null or $chunk->getProvider() === null){
|
||||
throw new \Exception("Invalid garbage Chunk given to Tile");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user