Skip to content

Commit

Permalink
Fix piglin and hoglin shaking effect
Browse files Browse the repository at this point in the history
  • Loading branch information
AJ-Ferguson committed May 3, 2024
1 parent 6289fb9 commit e9b309e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public BasePiglinEntity(GeyserSession session, int entityId, long geyserId, UUID
if (definition.entityType() == EntityType.PIGLIN_BRUTE) {
dirtyMetadata.put(EntityDataTypes.BLOCK, session.getBlockMappings().getDefinition(1));
}
setFlag(EntityFlag.SHAKING, isShaking());
}

@Override
Expand Down

0 comments on commit e9b309e

Please sign in to comment.