mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-05 17:36:12 +00:00
Added Tile::saveNBT(), moved Player::broadcastPacket() to Server
This commit is contained in:
@ -95,6 +95,12 @@ abstract class Tile extends Position{
|
||||
$this->getLevel()->chunkTiles[$this->chunkIndex][$this->id] = $this;
|
||||
}
|
||||
|
||||
public function saveNBT(){
|
||||
$this->namedtag["x"] = $this->x;
|
||||
$this->namedtag["y"] = $this->y;
|
||||
$this->namedtag["z"] = $this->z;
|
||||
}
|
||||
|
||||
public function onUpdate(){
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user