mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
Player position is now saved as float value
This commit is contained in:
parent
678d89adc6
commit
794caf7a98
1 changed files with 6 additions and 6 deletions
|
|
@ -237,15 +237,15 @@ class Player{
|
|||
$this->data->set("achievements", $this->achievements);
|
||||
$this->data->set("position", array(
|
||||
"level" => $this->entity->level->getName(),
|
||||
"x" => $this->entity->x,
|
||||
"y" => $this->entity->y,
|
||||
"z" => $this->entity->z,
|
||||
"x" => (float) $this->entity->x,
|
||||
"y" => (float) $this->entity->y,
|
||||
"z" => (float) $this->entity->z,
|
||||
));
|
||||
$this->data->set("spawn", array(
|
||||
"level" => $this->spawnPosition->level->getName(),
|
||||
"x" => $this->spawnPosition->x,
|
||||
"y" => $this->spawnPosition->y,
|
||||
"z" => $this->spawnPosition->z,
|
||||
"x" => (float) $this->spawnPosition->x,
|
||||
"y" => (float) $this->spawnPosition->y,
|
||||
"z" => (float) $this->spawnPosition->z,
|
||||
));
|
||||
$inv = array();
|
||||
foreach($this->inventory as $slot => $item){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue