Skip to content

Commit

Permalink
Fix black cats not appearing correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Camotoy committed Dec 22, 2022
1 parent fcd5fe1 commit 03390b9
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ public CatEntity(GeyserSession session, int entityId, long geyserId, UUID uuid,
super(session, entityId, geyserId, uuid, definition, position, motion, yaw, pitch, headYaw);
}

@Override
protected void initializeMetadata() {
super.initializeMetadata();
// Default value (minecraft:black).
dirtyMetadata.put(EntityData.VARIANT, 1);
}

@Override
public void updateRotation(float yaw, float pitch, boolean isOnGround) {
moveRelative(0, 0, 0, yaw, pitch, yaw, isOnGround);
Expand Down

0 comments on commit 03390b9

Please sign in to comment.