mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-05 17:36:12 +00:00
Added some asserts
This commit is contained in:
@ -111,9 +111,7 @@ abstract class Tile extends Position{
|
||||
}
|
||||
|
||||
public function __construct(FullChunk $chunk, CompoundTag $nbt){
|
||||
if($chunk === null or $chunk->getProvider() === null){
|
||||
throw new ChunkException("Invalid garbage Chunk given to Tile");
|
||||
}
|
||||
assert($chunk !== null and $chunk->getProvider() !== null);
|
||||
|
||||
$this->timings = Timings::getTileEntityTimings($this);
|
||||
|
||||
|
Reference in New Issue
Block a user