mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 20:49:05 +00:00
Fix Decrement
This commit is contained in:
1 parent
c2c101641f
commit
8e70e958f3
2 files changed
+2
-2
No files matched your search
@@ -418,7 +418,7 @@ public class CustomEffectController implements ICustomEffectHandler {
|
||||
if (effect.duration == -100)
|
||||
continue;
|
||||
if (effect.duration <= 0) {
|
||||
CustomEffect parent = CustomEffectController.Instance.get(effect.id);
|
||||
CustomEffect parent = CustomEffectController.Instance.get(effect.id, effect.index);
|
||||
if (parent != null) {
|
||||
parent.onRemoved(player, effect, ExpirationType.RUN_OUT);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user