mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
World: Harden chunk loading against bad data in entity/tile NBT
This commit is contained in:
@ -30,6 +30,7 @@ namespace pocketmine\block\tile;
|
||||
use pocketmine\block\Block;
|
||||
use pocketmine\item\Item;
|
||||
use pocketmine\math\Vector3;
|
||||
use pocketmine\nbt\NbtDataException;
|
||||
use pocketmine\nbt\tag\CompoundTag;
|
||||
use pocketmine\timings\Timings;
|
||||
use pocketmine\timings\TimingsHandler;
|
||||
@ -58,6 +59,7 @@ abstract class Tile{
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @throws NbtDataException
|
||||
* Reads additional data from the CompoundTag on tile creation.
|
||||
*/
|
||||
abstract public function readSaveData(CompoundTag $nbt) : void;
|
||||
|
Reference in New Issue
Block a user