mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
Cleaned up tile NBT handling, use new CompoundTag API methods
This commit is contained in:
@ -81,10 +81,10 @@ abstract class Spawnable extends Tile{
|
||||
*/
|
||||
final public function getSpawnCompound() : CompoundTag{
|
||||
$nbt = new CompoundTag("", [
|
||||
$this->namedtag->id,
|
||||
$this->namedtag->x,
|
||||
$this->namedtag->y,
|
||||
$this->namedtag->z
|
||||
$this->namedtag->getTag("id"),
|
||||
$this->namedtag->getTag("x"),
|
||||
$this->namedtag->getTag("y"),
|
||||
$this->namedtag->getTag("z")
|
||||
]);
|
||||
$this->addAdditionalSpawnData($nbt);
|
||||
return $nbt;
|
||||
|
Reference in New Issue
Block a user