Skip to content

Commit

Permalink
fix stackoverflow with werewolf dimensions
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheaterpaul committed Aug 30, 2024
1 parent 6e43754 commit bf1cd0e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public BasicWerewolfEntity(EntityType<? extends BasicWerewolfEntity> type, Level

@Override
protected @NotNull EntityDimensions getDefaultDimensions(@NotNull Pose pPose) {
return this.getForm().getSize(pPose).map(p -> p.scale(this.getScale())).orElse(super.getDimensions(pPose));
return this.getForm().getSize(pPose).map(p -> p.scale(this.getScale())).orElse(super.getDefaultDimensions(pPose));
}

@Override
Expand Down

0 comments on commit bf1cd0e

Please sign in to comment.