Fix ..... wtf

This commit is contained in:
IzzelAliz 2020-05-17 12:39:59 +08:00
parent 8fa71dd5c3
commit 852e6456a6

View File

@ -25,6 +25,6 @@ public abstract class FireworkRocketEntityMixin extends EntityMixin {
@Inject(method = "dealExplosionDamage", at = @At(value = "INVOKE", shift = At.Shift.AFTER, target = "Lnet/minecraft/entity/LivingEntity;attackEntityFrom(Lnet/minecraft/util/DamageSource;F)Z")) @Inject(method = "dealExplosionDamage", at = @At(value = "INVOKE", shift = At.Shift.AFTER, target = "Lnet/minecraft/entity/LivingEntity;attackEntityFrom(Lnet/minecraft/util/DamageSource;F)Z"))
private void arclight$damageSourceReset(CallbackInfo ci) { private void arclight$damageSourceReset(CallbackInfo ci) {
CraftEventFactory.entityDamage = (FireworkRocketEntity) (Object) this; CraftEventFactory.entityDamage = null;
} }
} }