mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 16:51:42 +00:00
New NBT library finished
This commit is contained in:
parent
9cfa49c112
commit
21671b133a
@ -26,7 +26,7 @@ class NBTTag_String extends NamedNBTTag{
|
||||
}
|
||||
|
||||
public function read(NBT $nbt){
|
||||
$this->value = $nbt->get($this->getShort());
|
||||
$this->value = $nbt->get($nbt->getShort());
|
||||
}
|
||||
|
||||
public function write(NBT $nbt){
|
||||
|
@ -370,9 +370,9 @@ class Tile extends Position{
|
||||
}else{
|
||||
$nbt->setData(new NBTTag_Compound("", array(
|
||||
new NBTTag_String("id", $this->class),
|
||||
new NBTTag_String("x", (int) $this->x),
|
||||
new NBTTag_String("y", (int) $this->y),
|
||||
new NBTTag_String("z", (int) $this->z),
|
||||
new NBTTag_Int("x", (int) $this->x),
|
||||
new NBTTag_Int("y", (int) $this->y),
|
||||
new NBTTag_Int("z", (int) $this->z),
|
||||
new NBTTag_End
|
||||
)));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user