From 21e0739845db50316a71bdd0cbd351e8ed24ac77 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Sun, 15 Feb 2015 18:48:30 +0100 Subject: [PATCH] Fixed #2598 --- src/pocketmine/nbt/tag/Tag.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/nbt/tag/Tag.php b/src/pocketmine/nbt/tag/Tag.php index 4730acf3f..314d9cf70 100644 --- a/src/pocketmine/nbt/tag/Tag.php +++ b/src/pocketmine/nbt/tag/Tag.php @@ -45,6 +45,6 @@ abstract class Tag extends \stdClass{ abstract public function read(NBT $nbt); public final function __toString(){ - return $this->value; + return (string) $this->value; } }