Fix piglin and hoglin shaking effect

This commit is contained in:
AJ Ferguson 2024-05-03 11:10:49 -04:00
parent 6289fb9a58
commit e9b309e8fa
2 changed files with 2 additions and 0 deletions

View File

@ -42,6 +42,7 @@ public class HoglinEntity extends AnimalEntity {
public HoglinEntity(GeyserSession session, int entityId, long geyserId, UUID uuid, EntityDefinition<?> definition, Vector3f position, Vector3f motion, float yaw, float pitch, float headYaw) {
super(session, entityId, geyserId, uuid, definition, position, motion, yaw, pitch, headYaw);
dirtyMetadata.put(EntityDataTypes.TARGET_EID, session.getPlayerEntity().getGeyserId());
setFlag(EntityFlag.SHAKING, isShaking());
}
public void setImmuneToZombification(BooleanEntityMetadata entityMetadata) {

View File

@ -45,6 +45,7 @@ public class BasePiglinEntity extends MonsterEntity {
if (definition.entityType() == EntityType.PIGLIN_BRUTE) {
dirtyMetadata.put(EntityDataTypes.BLOCK, session.getBlockMappings().getDefinition(1));
}
setFlag(EntityFlag.SHAKING, isShaking());
}
@Override