mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-23 07:20:50 +01:00
rank effect should not be applied from RoomManager, apply it from EffectsComponent instead
This commit is contained in:
parent
db71cd8406
commit
1527fe5593
@ -747,11 +747,6 @@ public class RoomManager {
|
||||
}
|
||||
|
||||
int effect = habbo.getInventory().getEffectsComponent().activatedEffect;
|
||||
|
||||
if (effect == 0) {
|
||||
effect = habbo.getHabboInfo().getRank().getRoomEffect();
|
||||
}
|
||||
|
||||
room.giveEffect(habbo.getRoomUnit(), effect, -1);
|
||||
}
|
||||
|
||||
|
@ -65,7 +65,9 @@ public class EffectsComponent {
|
||||
rankEffect.duration = 0;
|
||||
rankEffect.isRankEnable = true;
|
||||
rankEffect.activationTimestamp = Emulator.getIntUnixTimestamp();
|
||||
rankEffect.enabled = true;
|
||||
this.effects.put(effectId, rankEffect);
|
||||
this.activatedEffect = effectId; // enabled by default
|
||||
return rankEffect;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user