SteamWar/BungeeCore
Archiviert
13
2

Fix Quilt FabricModSender requirement
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2023-02-19 22:46:58 +01:00
Ursprung 6735bf4d6a
Commit 978fd1abe0
2 geänderte Dateien mit 4 neuen und 3 gelöschten Zeilen

@ -1 +1 @@
Subproject commit 89b0c14da664589a7c9699d73bf72028cdf9dd0d Subproject commit aa70f423d87e9f6534ad2dd1f20a5122179c423f

Datei anzeigen

@ -44,13 +44,14 @@ public class ModLoaderBlocker extends BasicListener {
if(!e.getTag().equals("minecraft:brand")) if(!e.getTag().equals("minecraft:brand"))
return; return;
if(new String(e.getData()).contains("fabric")){ String brand = new String(e.getData());
if(brand.contains("fabric") || brand.contains("quilt")){
ProxiedPlayer p = (ProxiedPlayer) sender; ProxiedPlayer p = (ProxiedPlayer) sender;
if (!Storage.fabricCheckedPlayers.containsKey(p) && !Storage.fabricPlayers.contains(p)) { if (!Storage.fabricCheckedPlayers.containsKey(p) && !Storage.fabricPlayers.contains(p)) {
Storage.fabricPlayers.add(p); Storage.fabricPlayers.add(p);
Message.send("MODLOADER_INSTALLED_FABRIC", p, "Fabric"); Message.send("MODLOADER_INSTALLED_FABRIC", p, "Fabric");
} }
}else if(new String(e.getData()).contains("LiteLoader")) { }else if(brand.contains("LiteLoader")) {
ProxiedPlayer p = (ProxiedPlayer) sender; ProxiedPlayer p = (ProxiedPlayer) sender;
if (!Storage.fabricPlayers.contains(p)) { if (!Storage.fabricPlayers.contains(p)) {
Storage.fabricPlayers.add(p); Storage.fabricPlayers.add(p);