Skip to content

Commit

Permalink
Change elytra event mixin injection point (#4447)
Browse files Browse the repository at this point in the history
  • Loading branch information
PrimordialMoros authored Feb 20, 2025
1 parent ee91fa1 commit da99546
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ abstract class LivingEntityMixin extends Entity {
* Handle ALLOW and CUSTOM {@link EntityElytraEvents} when an entity is fall flying.
*/
@SuppressWarnings("ConstantConditions")
@Inject(at = @At(value = "INVOKE", target = "Lnet/minecraft/entity/LivingEntity;getEquippedStack(Lnet/minecraft/entity/EquipmentSlot;)Lnet/minecraft/item/ItemStack;"), method = "tickGliding()V", allow = 1, cancellable = true)
@Inject(at = @At(value = "INVOKE", target = "Lnet/minecraft/util/Util;getRandom(Ljava/util/List;Lnet/minecraft/util/math/random/Random;)Ljava/lang/Object;"), method = "tickGliding()V", allow = 1, cancellable = true)
void injectElytraTick(CallbackInfo info) {
LivingEntity self = (LivingEntity) (Object) this;

Expand Down

0 comments on commit da99546

Please # to comment.