mirror of
https://github.com/Minestom/Minestom.git
synced 2025-02-11 09:51:35 +01:00
fix: send attribute base value not computed.
This commit is contained in:
parent
96dbad809f
commit
7b180172ce
@ -526,7 +526,7 @@ public class LivingEntity extends Entity implements EquipmentHandler {
|
||||
EntityAttributesPacket propertiesPacket = new EntityAttributesPacket(getEntityId(), List.of(
|
||||
new EntityAttributesPacket.Property(
|
||||
attributeInstance.attribute(),
|
||||
attributeInstance.getValue(),
|
||||
attributeInstance.getBaseValue(),
|
||||
attributeInstance.getModifiers())
|
||||
));
|
||||
if (self) {
|
||||
@ -673,7 +673,7 @@ public class LivingEntity extends Entity implements EquipmentHandler {
|
||||
protected @NotNull EntityAttributesPacket getPropertiesPacket() {
|
||||
List<EntityAttributesPacket.Property> properties = new ArrayList<>();
|
||||
for (AttributeInstance instance : attributeModifiers.values()) {
|
||||
properties.add(new EntityAttributesPacket.Property(instance.attribute(), instance.getValue(), instance.getModifiers()));
|
||||
properties.add(new EntityAttributesPacket.Property(instance.attribute(), instance.getBaseValue(), instance.getModifiers()));
|
||||
}
|
||||
return new EntityAttributesPacket(getEntityId(), properties);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user