From 21671b133a048573241d0240c41c533d2dbe589d Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Wed, 26 Feb 2014 15:20:16 +0100 Subject: [PATCH] New NBT library finished --- src/nbt/tags/TAG_String.php | 2 +- src/world/Tile.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/nbt/tags/TAG_String.php b/src/nbt/tags/TAG_String.php index 3a56419e1..deee590e3 100644 --- a/src/nbt/tags/TAG_String.php +++ b/src/nbt/tags/TAG_String.php @@ -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){ diff --git a/src/world/Tile.php b/src/world/Tile.php index b994fbcf9..7a05c7052 100644 --- a/src/world/Tile.php +++ b/src/world/Tile.php @@ -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 ))); }