mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2025-12-31 12:56:28 +00:00
fix(bukkit): 修改资源包加载失败的提示信息
This commit is contained in:
@@ -2213,7 +2213,7 @@ public class PacketConsumers {
|
||||
if (action == Reflections.instance$ServerboundResourcePackPacket$Action$DECLINED
|
||||
|| action == Reflections.instance$ServerboundResourcePackPacket$Action$FAILED_DOWNLOAD) {
|
||||
Object kickPacket = Reflections.constructor$ClientboundDisconnectPacket.newInstance(
|
||||
ComponentUtils.adventureToMinecraft(Config.resourcePackPrompt()));
|
||||
ComponentUtils.adventureToMinecraft(Component.translatable("multiplayer.requiredTexturePrompt.disconnect")));
|
||||
user.nettyChannel().writeAndFlush(kickPacket);
|
||||
user.nettyChannel().disconnect();
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user