Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2025-01-12 08:01:06 +01:00
Revert this particular change since it wasn't quite ready yet
Dieser Commit ist enthalten in:
Ursprung
e954d091b9
Commit
70ec77b1e3
@ -255,13 +255,8 @@ public class LivingEntity extends Entity {
|
||||
if (javaAttribute.getType() instanceof AttributeType.Builtin type) {
|
||||
switch (type) {
|
||||
case GENERIC_MAX_HEALTH -> {
|
||||
float maxHealth = (float) AttributeUtils.calculateValue(javaAttribute);
|
||||
if (this.maxHealth != maxHealth) {
|
||||
// Helps prnt respawn bugs where the player respawns twice
|
||||
// Because we re-sent the health attribute as 0
|
||||
this.maxHealth = maxHealth;
|
||||
newAttributes.add(createHealthAttribute());
|
||||
}
|
||||
this.maxHealth = (float) AttributeUtils.calculateValue(javaAttribute);
|
||||
newAttributes.add(createHealthAttribute());
|
||||
}
|
||||
case GENERIC_ATTACK_DAMAGE -> newAttributes.add(calculateAttribute(javaAttribute, GeyserAttributeType.ATTACK_DAMAGE));
|
||||
case GENERIC_FLYING_SPEED -> newAttributes.add(calculateAttribute(javaAttribute, GeyserAttributeType.FLYING_SPEED));
|
||||
|
Laden…
x
In neuem Issue referenzieren
Einen Benutzer sperren