SteamWar/BungeeCore
Archiviert
13
2

Improve needed mods check #456

Zusammengeführt
Lixfel hat 1 Commits von BetterNeededMods nach master 2023-02-17 14:58:29 +01:00 zusammengeführt

Datei anzeigen

@ -122,12 +122,8 @@ public class Fabric extends BasicListener {
mods.add(Mod.get(mod.getAsString(), Mod.Platform.FABRIC));
}
if(!neededModsContained(mods)) {
logMessage(user, "Needed mods are not contained", dataString);
return;
}
if(Utils.handleMods(player,mods)) {
boolean neededMods = neededModsContained(mods);
if(Utils.handleMods(player,mods) && neededMods) {
if (Storage.fabricCheckedPlayers.containsKey(player)) {
long current = Storage.fabricCheckedPlayers.get(player);
if (current != dataString.hashCode()) {
@ -139,6 +135,8 @@ public class Fabric extends BasicListener {
Storage.fabricCheckedPlayers.put(player, dataString.hashCode());
}
Storage.fabricPlayers.remove(player);
} else if (!neededMods) {
logMessage(user, "Needed mods are not contained", dataString);
}
}