Remove UUID when deserialising NBT
This commit is contained in:
parent
8ad3bc8ba6
commit
7ac9b7b283
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue