This commit is contained in:
themode 2021-01-06 21:19:09 +01:00
parent 84fd568c0c
commit 4107c768a3

View File

@ -1081,6 +1081,7 @@ public class Player extends LivingEntity implements CommandSender {
@Override
protected void onAttributeChanged(@NotNull final AttributeInstance attributeInstance) {
if (attributeInstance.getAttribute().isShared() &&
playerConnection != null &&
playerConnection.getConnectionState() == ConnectionState.PLAY) {
playerConnection.sendPacket(getPropertiesPacket());
}