Remove UUID when deserialising NBT

This commit is contained in:
ceze88 2022-12-29 11:52:12 +01:00
parent 8ad3bc8ba6
commit 7ac9b7b283
1 changed files with 1 additions and 0 deletions

View File

@ -25,6 +25,7 @@ public class NBTEntityImpl extends NBTCompoundImpl implements NBTEntity {
@Override
public org.bukkit.entity.Entity spawn(Location location) {
String entityType = getNBTObject("entity_type").asString();
getKeys().remove("UUID");
Optional<EntityType<?>> optionalEntity = EntityType.byString(entityType);
if (optionalEntity.isPresent()) {