Skip to content

Commit

Permalink
fix: Fix AddEfect LiteLDev#1100 (LiteLDev#1104)
Browse files Browse the repository at this point in the history
  • Loading branch information
KobeBryant114514 authored and RimuruChan committed Mar 2, 2023
1 parent 91a5745 commit edbf54a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LiteLoader/src/llapi/mc/ActorAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ Actor* Actor::getActorFromViewVector(float maxDistance) {
bool Actor::addEffect(MobEffect::EffectType type, int tick, int level, bool ambient, bool showParticles,
bool showAnimation) {
MobEffectInstance ins = MobEffectInstance((unsigned int)type, tick, level, ambient, showParticles, showAnimation);
ins.applyEffects(this);
this->addEffect(ins);
return true;
};

Expand Down

0 comments on commit edbf54a

Please sign in to comment.