mirror of
https://github.com/MinecraftForge/MinecraftForge
synced 2026-08-22 04:26:10 -04:00
Fix ServerChatEvent thread not using correct class loader. (#10591)
This commit is contained in:
parent
6c4f5e2865
commit
f4e8c6b67e
1 changed files with 2 additions and 1 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue