mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-06-30 12:45:34 +02:00
Fix tag game effects
This commit is contained in:
parent
27b6766940
commit
430a86701e
|
@ -140,14 +140,16 @@ public abstract class TagGame extends Game {
|
||||||
TObjectHashIterator<HabboItem> iterator = poles.iterator();
|
TObjectHashIterator<HabboItem> iterator = poles.iterator();
|
||||||
if ((iterator.hasNext())) {
|
if ((iterator.hasNext())) {
|
||||||
HabboItem item = iterator.next();
|
HabboItem item = iterator.next();
|
||||||
habbo.getHabboInfo().getCurrentRoom().giveEffect(habbo, this.getTaggedEffect(habbo), -1);
|
habbo.getHabboInfo().getCurrentRoom().giveEffect(habbo, this.getEffect(habbo), -1);
|
||||||
|
this.room.scheduledTasks.add(() -> habbo.getHabboInfo().getCurrentRoom().giveEffect(habbo, this.getTaggedEffect(habbo), -1));
|
||||||
this.taggers.put(habbo, (InteractionTagPole) item);
|
this.taggers.put(habbo, (InteractionTagPole) item);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (this.taggers.isEmpty()) {
|
if (this.taggers.isEmpty()) {
|
||||||
habbo.getHabboInfo().getCurrentRoom().giveEffect(habbo, this.getTaggedEffect(habbo), -1);
|
habbo.getHabboInfo().getCurrentRoom().giveEffect(habbo, this.getEffect(habbo), -1);
|
||||||
|
this.room.scheduledTasks.add(() -> habbo.getHabboInfo().getCurrentRoom().giveEffect(habbo, this.getTaggedEffect(habbo), -1));
|
||||||
this.taggers.put(habbo, null);
|
this.taggers.put(habbo, null);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user