Fix ServerChatEvent thread not using correct class loader. (#10591)

This commit is contained in:
Jenny Mei 2025-08-01 13:25:26 -07:00 committed by GitHub
parent 6c4f5e2865
commit f4e8c6b67e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -40,6 +40,7 @@ import com.mojang.serialization.Lifecycle;
import it.unimi.dsi.fastutil.objects.ObjectArrayList;
import net.minecraft.ResourceLocationException;
import net.minecraft.Util;
import net.minecraft.commands.CommandSourceStack;
import net.minecraft.commands.Commands;
import net.minecraft.commands.SharedSuggestionProvider;
@ -420,7 +421,7 @@ public class ForgeHooks
return message; // Vanilla should never get here with the patches we use, but let's be safe with dumb mods
return onServerChatSubmittedEvent(sender, getRawText(message), message);
});
}, Util.backgroundExecutor());
}
static final Pattern URL_PATTERN = Pattern.compile(