Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-12-26 16:12:46 +01:00
Fix area effect clouds
Dieser Commit ist enthalten in:
Ursprung
1b00eaca4a
Commit
9b3cd8f725
@ -43,6 +43,8 @@ public class AreaEffectCloudEntity extends Entity {
|
|||||||
|
|
||||||
// This disabled client side shrink of the cloud
|
// This disabled client side shrink of the cloud
|
||||||
metadata.put(EntityData.AREA_EFFECT_CLOUD_RADIUS, 0.0f);
|
metadata.put(EntityData.AREA_EFFECT_CLOUD_RADIUS, 0.0f);
|
||||||
|
metadata.put(EntityData.AREA_EFFECT_CLOUD_CHANGE_RATE, -0.005f);
|
||||||
|
metadata.put(EntityData.AREA_EFFECT_CLOUD_CHANGE_ON_PICKUP, -0.5f);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -51,12 +53,14 @@ public class AreaEffectCloudEntity extends Entity {
|
|||||||
metadata.put(EntityData.AREA_EFFECT_CLOUD_RADIUS, entityMetadata.getValue());
|
metadata.put(EntityData.AREA_EFFECT_CLOUD_RADIUS, entityMetadata.getValue());
|
||||||
metadata.put(EntityData.BOUNDING_BOX_WIDTH, 2.0f * (float) entityMetadata.getValue());
|
metadata.put(EntityData.BOUNDING_BOX_WIDTH, 2.0f * (float) entityMetadata.getValue());
|
||||||
} else if (entityMetadata.getId() == 8) {
|
} else if (entityMetadata.getId() == 8) {
|
||||||
metadata.put(EntityData.POTION_AUX_VALUE, entityMetadata.getValue());
|
metadata.put(EntityData.EFFECT_COLOR, entityMetadata.getValue());
|
||||||
} else if (entityMetadata.getId() == 10) {
|
} else if (entityMetadata.getId() == 10) {
|
||||||
Particle particle = (Particle) entityMetadata.getValue();
|
Particle particle = (Particle) entityMetadata.getValue();
|
||||||
int particleId = EffectRegistry.getParticleId(particle.getType());
|
int particleId = EffectRegistry.getParticleId(particle.getType());
|
||||||
|
if (particleId != -1) {
|
||||||
metadata.put(EntityData.AREA_EFFECT_CLOUD_PARTICLE_ID, particleId);
|
metadata.put(EntityData.AREA_EFFECT_CLOUD_PARTICLE_ID, particleId);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
super.updateBedrockMetadata(entityMetadata, session);
|
super.updateBedrockMetadata(entityMetadata, session);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren