mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Revert this particular change since it wasn't quite ready yet
This commit is contained in:
parent
e954d091b9
commit
70ec77b1e3
1 changed files with 2 additions and 7 deletions
|
@ -255,13 +255,8 @@ public class LivingEntity extends Entity {
|
||||||
if (javaAttribute.getType() instanceof AttributeType.Builtin type) {
|
if (javaAttribute.getType() instanceof AttributeType.Builtin type) {
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case GENERIC_MAX_HEALTH -> {
|
case GENERIC_MAX_HEALTH -> {
|
||||||
float maxHealth = (float) AttributeUtils.calculateValue(javaAttribute);
|
this.maxHealth = (float) AttributeUtils.calculateValue(javaAttribute);
|
||||||
if (this.maxHealth != maxHealth) {
|
newAttributes.add(createHealthAttribute());
|
||||||
// Helps prnt respawn bugs where the player respawns twice
|
|
||||||
// Because we re-sent the health attribute as 0
|
|
||||||
this.maxHealth = maxHealth;
|
|
||||||
newAttributes.add(createHealthAttribute());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
case GENERIC_ATTACK_DAMAGE -> newAttributes.add(calculateAttribute(javaAttribute, GeyserAttributeType.ATTACK_DAMAGE));
|
case GENERIC_ATTACK_DAMAGE -> newAttributes.add(calculateAttribute(javaAttribute, GeyserAttributeType.ATTACK_DAMAGE));
|
||||||
case GENERIC_FLYING_SPEED -> newAttributes.add(calculateAttribute(javaAttribute, GeyserAttributeType.FLYING_SPEED));
|
case GENERIC_FLYING_SPEED -> newAttributes.add(calculateAttribute(javaAttribute, GeyserAttributeType.FLYING_SPEED));
|
||||||
|
|
Loading…
Reference in a new issue