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:
@@ -94,6 +94,20 @@ public class HappyGhastEntity extends AnimalEntity implements ClientVehicle {
|
|||||||
return 0.2375f;
|
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) {
|
public void setStaysStill(BooleanEntityMetadata entityMetadata) {
|
||||||
staysStill = entityMetadata.getPrimitiveValue();
|
staysStill = entityMetadata.getPrimitiveValue();
|
||||||
propertyManager.add("minecraft:can_move", !entityMetadata.getPrimitiveValue());
|
propertyManager.add("minecraft:can_move", !entityMetadata.getPrimitiveValue());
|
||||||
|
|||||||
Reference in New Issue
Block a user