fixed shoulder entity property for 1.8-1.11

This commit is contained in:
D3v1s0m 2023-07-23 23:18:48 +05:30
parent fd0e57e7fe
commit fef68e663b
No known key found for this signature in database
GPG Key ID: FA1F770C7B1D40C1

@ -152,9 +152,11 @@ public class V1_8PacketFactory implements PacketFactory {
properties.getProperty(propertyRegistry.getByName("skin_right_leg", Boolean.class)),
properties.getProperty(propertyRegistry.getByName("skin_hat", Boolean.class))
));
if (packetEvents.getServerManager().getVersion().isNewerThanOrEquals(ServerVersion.V_1_12)) {
add(data, metadataFactory.shoulderEntityLeft(properties.getProperty(propertyRegistry.getByName("shoulder_entity_left", ParrotVariant.class))));
add(data, metadataFactory.shoulderEntityRight(properties.getProperty(propertyRegistry.getByName("shoulder_entity_right", ParrotVariant.class))));
}
}
else if (entity.getType().equals(EntityTypes.ARMOR_STAND)) {
add(data, metadataFactory.armorStandProperties(
properties.getProperty(propertyRegistry.getByName("small", Boolean.class)),