mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-05 17:36:12 +00:00
It works. (Inventory, windows, block placement)
This commit is contained in:
@ -85,9 +85,9 @@ abstract class Tile extends Position{
|
||||
$this->lastUpdate = microtime(true);
|
||||
$this->id = Tile::$tileCount++;
|
||||
Tile::$list[$this->id] = $this;
|
||||
$this->x = (int) $this->namedtag->x;
|
||||
$this->y = (int) $this->namedtag->y;
|
||||
$this->z = (int) $this->namedtag->z;
|
||||
$this->x = (int) $this->namedtag["x"];
|
||||
$this->y = (int) $this->namedtag["y"];
|
||||
$this->z = (int) $this->namedtag["z"];
|
||||
|
||||
$index = LevelFormat::getIndex($this->x >> 4, $this->z >> 4);
|
||||
$this->chunkIndex = $index;
|
||||
|
Reference in New Issue
Block a user