1
0
mirror of https://github.com/GeyserMC/Geyser.git synced 2025-12-19 14:59:27 +00:00

Slightly increase happy ghast size (#5626)

This commit is contained in:
AJ Ferguson
2025-06-28 20:03:55 -04:00
committed by GitHub
parent 7bb777ee53
commit deedd5c69c

View File

@@ -94,6 +94,20 @@ public class HappyGhastEntity extends AnimalEntity implements ClientVehicle {
return 0.2375f;
}
@Override
protected float getAdultSize() {
// Make collision slightly larger to stop bedrock client from clipping into it
// This value will not work at very large coordinates
return 1.001f;
}
@Override
public void setBaby(BooleanEntityMetadata entityMetadata) {
super.setBaby(entityMetadata);
// Players can only stand on grown up happy ghasts
setFlag(EntityFlag.COLLIDABLE, !entityMetadata.getPrimitiveValue());
}
public void setStaysStill(BooleanEntityMetadata entityMetadata) {
staysStill = entityMetadata.getPrimitiveValue();
propertyManager.add("minecraft:can_move", !entityMetadata.getPrimitiveValue());