mirror of https://github.com/GeyserMC/Geyser.git
Fix piglin and hoglin shaking effect
This commit is contained in:
parent
6289fb9a58
commit
e9b309e8fa
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue