From 978fd1abe07008d3ef562e3dd36b8fa7d692182c Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sun, 19 Feb 2023 22:46:58 +0100 Subject: [PATCH] Fix Quilt FabricModSender requirement Signed-off-by: Lixfel --- CommonCore | 2 +- .../steamwar/bungeecore/listeners/mods/ModLoaderBlocker.java | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CommonCore b/CommonCore index 89b0c14d..aa70f423 160000 --- a/CommonCore +++ b/CommonCore @@ -1 +1 @@ -Subproject commit 89b0c14da664589a7c9699d73bf72028cdf9dd0d +Subproject commit aa70f423d87e9f6534ad2dd1f20a5122179c423f diff --git a/src/de/steamwar/bungeecore/listeners/mods/ModLoaderBlocker.java b/src/de/steamwar/bungeecore/listeners/mods/ModLoaderBlocker.java index 71f8220f..d8ae90c0 100644 --- a/src/de/steamwar/bungeecore/listeners/mods/ModLoaderBlocker.java +++ b/src/de/steamwar/bungeecore/listeners/mods/ModLoaderBlocker.java @@ -44,13 +44,14 @@ public class ModLoaderBlocker extends BasicListener { if(!e.getTag().equals("minecraft:brand")) 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; if (!Storage.fabricCheckedPlayers.containsKey(p) && !Storage.fabricPlayers.contains(p)) { Storage.fabricPlayers.add(p); Message.send("MODLOADER_INSTALLED_FABRIC", p, "Fabric"); } - }else if(new String(e.getData()).contains("LiteLoader")) { + }else if(brand.contains("LiteLoader")) { ProxiedPlayer p = (ProxiedPlayer) sender; if (!Storage.fabricPlayers.contains(p)) { Storage.fabricPlayers.add(p);