more constants in Tile

This commit is contained in:
Dylan K. Taylor
2017-11-08 10:49:15 +00:00
parent 733e61f815
commit 827ee5ff33
2 changed files with 22 additions and 17 deletions

View File

@ -107,10 +107,10 @@ abstract class Spawnable extends Tile{
*/
final public function getSpawnCompound() : CompoundTag{
$nbt = new CompoundTag("", [
$this->namedtag->getTag("id"),
$this->namedtag->getTag("x"),
$this->namedtag->getTag("y"),
$this->namedtag->getTag("z")
$this->namedtag->getTag(self::TAG_ID),
$this->namedtag->getTag(self::TAG_X),
$this->namedtag->getTag(self::TAG_Y),
$this->namedtag->getTag(self::TAG_Z)
]);
$this->addAdditionalSpawnData($nbt);
return $nbt;