fixed shoulder entity property for 1.8-1.11
This commit is contained in:
parent
fd0e57e7fe
commit
fef68e663b
1 changed files with 4 additions and 2 deletions
|
@ -152,9 +152,11 @@ public class V1_8PacketFactory implements PacketFactory {
|
||||||
properties.getProperty(propertyRegistry.getByName("skin_right_leg", Boolean.class)),
|
properties.getProperty(propertyRegistry.getByName("skin_right_leg", Boolean.class)),
|
||||||
properties.getProperty(propertyRegistry.getByName("skin_hat", 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.shoulderEntityLeft(properties.getProperty(propertyRegistry.getByName("shoulder_entity_left", ParrotVariant.class))));
|
||||||
add(data, metadataFactory.shoulderEntityRight(properties.getProperty(propertyRegistry.getByName("shoulder_entity_right", ParrotVariant.class))));
|
add(data, metadataFactory.shoulderEntityRight(properties.getProperty(propertyRegistry.getByName("shoulder_entity_right", ParrotVariant.class))));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else if (entity.getType().equals(EntityTypes.ARMOR_STAND)) {
|
else if (entity.getType().equals(EntityTypes.ARMOR_STAND)) {
|
||||||
add(data, metadataFactory.armorStandProperties(
|
add(data, metadataFactory.armorStandProperties(
|
||||||
properties.getProperty(propertyRegistry.getByName("small", Boolean.class)),
|
properties.getProperty(propertyRegistry.getByName("small", Boolean.class)),
|
||||||
|
|
Loading…
Reference in a new issue