Handle shulker meta change

This commit is contained in:
KennyTV 2021-01-21 11:37:31 +01:00
parent e679a0c2b0
commit ee2959ac5d
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B
1 changed files with 9 additions and 0 deletions

View File

@ -41,6 +41,15 @@ public class MetadataRewriter1_17To1_16_4 extends MetadataRewriter {
metadata.setId(metadata.getId() + 1); // Ticks frozen added with id 7
}
}
if (type == Entity1_17Types.EntityType.SHULKER) {
// Attachment position removed
if (metadata.getId() == 16) {
metadatas.remove(metadata);
} else if (metadata.getId() > 16) {
metadata.setId(metadata.getId() - 1);
}
}
}
@Override