Skip to content

Commit

Permalink
Oops need to actually fire the event
Browse files Browse the repository at this point in the history
  • Loading branch information
AlphaMode committed Nov 23, 2023
1 parent 35da861 commit 8f8a645
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ public abstract class EntityMixin implements EntityExtensions {
@WrapOperation(method = "<init>", at = @At(value = "INVOKE", target = "Lnet/minecraft/world/entity/Entity;getEyeHeight(Lnet/minecraft/world/entity/Pose;Lnet/minecraft/world/entity/EntityDimensions;)F"))
private float entitySizeConstructEvent(Entity instance, Pose pose, EntityDimensions dimensions, Operation<Float> original) {
EntityEvents.Size sizeEvent = new EntityEvents.Size((Entity) (Object) this, Pose.STANDING, this.dimensions, original.call(instance, pose, dimensions));
sizeEvent.sendEvent();
this.dimensions = sizeEvent.getNewSize();
return sizeEvent.getNewEyeHeight();
}
Expand Down

0 comments on commit 8f8a645

Please sign in to comment.