New NBT library finished

This commit is contained in:
Shoghi Cervantes 2014-02-26 15:20:16 +01:00
parent 9cfa49c112
commit 21671b133a
2 changed files with 4 additions and 4 deletions

View File

@ -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){

View File

@ -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
)));
}