mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
Merge branch 'stable' of https://github.com/pmmp/pocketmine-mp into stable
This commit is contained in:
commit
198a106b9f
@ -868,7 +868,7 @@ abstract class Entity extends Location implements Metadatable, EntityIds{
|
|||||||
*/
|
*/
|
||||||
public function getSaveId() : string{
|
public function getSaveId() : string{
|
||||||
if(!isset(self::$saveNames[static::class])){
|
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]);
|
reset(self::$saveNames[static::class]);
|
||||||
return current(self::$saveNames[static::class]);
|
return current(self::$saveNames[static::class]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user