From 41f7c07703bf3f7ef2d9504bbdbdf74257e75d12 Mon Sep 17 00:00:00 2001 From: VixikHD Date: Mon, 3 Aug 2020 01:20:28 +0200 Subject: [PATCH] Entity: report the class in getSaveId() unregistered entity exception (#3744) --- src/pocketmine/entity/Entity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/entity/Entity.php b/src/pocketmine/entity/Entity.php index 594eaf7bc..51730ccd5 100644 --- a/src/pocketmine/entity/Entity.php +++ b/src/pocketmine/entity/Entity.php @@ -868,7 +868,7 @@ abstract class Entity extends Location implements Metadatable, EntityIds{ */ public function getSaveId() : string{ if(!isset(self::$saveNames[static::class])){ - throw new \InvalidStateException("Entity is not registered"); + throw new \InvalidStateException("Entity " . static::class . " is not registered"); } reset(self::$saveNames[static::class]); return current(self::$saveNames[static::class]);