SteamWar/BungeeCore
Archiviert
13
2

Fix ModLoaderBlocker for Legacy API, if still used?
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
yoyosource 2023-10-24 11:37:36 +02:00
Ursprung c4fcbdcb43
Commit d46c89101d

Datei anzeigen

@ -41,11 +41,16 @@ public class ModLoaderBlocker extends BasicListener {
if(!(sender instanceof ProxiedPlayer)) if(!(sender instanceof ProxiedPlayer))
return; return;
ProxiedPlayer p = (ProxiedPlayer) sender;
if (e.getTag().equals("lunarclient:pm")) {
p.disconnect(Message.parseToComponent("MOD_LOADER_LUNAR_CLIENT", false, p));
return;
}
if(!e.getTag().equals("minecraft:brand")) if(!e.getTag().equals("minecraft:brand"))
return; return;
String brand = new String(e.getData()); String brand = new String(e.getData());
ProxiedPlayer p = (ProxiedPlayer) sender;
if(brand.contains("fabric") || brand.contains("quilt") || brand.contains("LiteLoader")){ if(brand.contains("fabric") || brand.contains("quilt") || brand.contains("LiteLoader")){
if (!Storage.fabricCheckedPlayers.containsKey(p)) { if (!Storage.fabricCheckedPlayers.containsKey(p)) {
Storage.fabricPlayers.add(p); Storage.fabricPlayers.add(p);