diff --git a/src/pocketmine/item/WrittenBook.php b/src/pocketmine/item/WrittenBook.php index 37c4dd02de..fa92cb2eeb 100644 --- a/src/pocketmine/item/WrittenBook.php +++ b/src/pocketmine/item/WrittenBook.php @@ -49,7 +49,7 @@ class WrittenBook extends WritableBook{ * @return int */ public function getGeneration() : int{ - return $this->getNamedTag()->getInt(self::TAG_GENERATION, -1); + return $this->getNamedTag()->getInt(self::TAG_GENERATION, self::GENERATION_ORIGINAL); } /**