Skip to content

Commit

Permalink
Adapt to VariantInfo changes (#72)
Browse files Browse the repository at this point in the history
Signed-off-by: BT (calcastor/mame) <43831917+calcastor@users.noreply.github.com>
  • Loading branch information
calcastor authored Aug 8, 2024
1 parent 4c4c177 commit 0d87b4a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@
import org.bukkit.event.player.PlayerJoinEvent;
import tc.oc.pgm.api.PGM;
import tc.oc.pgm.api.map.MapInfo;
import tc.oc.pgm.api.map.MapInfo.VariantInfo;
import tc.oc.pgm.api.map.MapOrder;
import tc.oc.pgm.api.map.Phase;
import tc.oc.pgm.api.map.VariantInfo;
import tc.oc.pgm.api.match.event.MatchFinishEvent;
import tc.oc.pgm.api.match.event.MatchVoteFinishEvent;
import tc.oc.pgm.events.PlayerJoinMatchEvent;
Expand Down Expand Up @@ -642,7 +642,7 @@ private boolean isACooldownVariant(MapInfo map) {
if (cooldown.hasExpired()) return false;

for (VariantInfo variant : otherMap.getVariants().values()) {
if (variant.getMapId().equalsIgnoreCase(map.getId())) {
if (variant.getId().equalsIgnoreCase(map.getId())) {
return true;
}
}
Expand All @@ -661,7 +661,7 @@ private MapCooldown getMapCooldown(MapInfo map) {
MapCooldown cooldown = entry.getValue();

for (VariantInfo variant : otherMap.getVariants().values()) {
if (variant.getMapId().equalsIgnoreCase(map.getId())) {
if (variant.getId().equalsIgnoreCase(map.getId())) {
return cooldown;
}
}
Expand Down

0 comments on commit 0d87b4a

Please sign in to comment.