mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Fixed wrong key being used for entity type ID in save data (#5288)
closes #5260
This commit is contained in:
@ -2492,7 +2492,7 @@ class World implements ChunkManager{
|
||||
continue;
|
||||
}
|
||||
if($entity === null){
|
||||
$saveIdTag = $nbt->getTag("id") ?? $nbt->getTag("identifier");
|
||||
$saveIdTag = $nbt->getTag("identifier") ?? $nbt->getTag("id");
|
||||
$saveId = "<unknown>";
|
||||
if($saveIdTag instanceof StringTag){
|
||||
$saveId = $saveIdTag->getValue();
|
||||
|
Reference in New Issue
Block a user