Getting correct String from CompoundTag (#1867)

This commit is contained in:
Aeliios 2022-07-03 13:43:03 +02:00 committed by GitHub
parent def84a80c6
commit 902f153929
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,7 +78,7 @@ public class MutableEntityChange implements Change {
double z = pos.get(2).getValue();
Extent extent = context.getExtent();
Location location = new Location(extent, x, y, z, 0, 0);
String id = tag.getString("Id");
String id = tag.getString("id");
EntityType type = EntityTypes.parse(id);
BaseEntity entity = new BaseEntity(type, tag);
extent.createEntity(location, entity, tag.getUUID());