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,8 +152,10 @@ public class V1_8PacketFactory implements PacketFactory {
|
|||
properties.getProperty(propertyRegistry.getByName("skin_right_leg", Boolean.class)),
|
||||
properties.getProperty(propertyRegistry.getByName("skin_hat", Boolean.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))));
|
||||
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(
|
||||
|
|
Loading…
Reference in a new issue