Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-12-27 00:23:03 +01:00
Fix compiling
Dieser Commit ist enthalten in:
Ursprung
ddd2262380
Commit
4405989b81
@ -25,7 +25,7 @@
|
||||
|
||||
package org.geysermc.geyser.text;
|
||||
|
||||
import com.github.steveice10.mc.protocol.data.game.MessageType;
|
||||
import com.github.steveice10.mc.protocol.data.game.BuiltinChatType;
|
||||
import com.nukkitx.protocol.bedrock.packet.TextPacket;
|
||||
import it.unimi.dsi.fastutil.ints.Int2ObjectMap;
|
||||
|
||||
@ -45,13 +45,13 @@ public record ChatTypeEntry(@Nonnull TextPacket.Type bedrockChatType, @Nullable
|
||||
// So the proper way to do this, probably, would be to dump the NBT data from vanilla and load it.
|
||||
// But, the only way this happens is if a chat message is sent to us before the login packet, which is rare.
|
||||
// So we'll just make sure chat ends up in the right place.
|
||||
chatTypes.put(MessageType.CHAT.ordinal(), CHAT);
|
||||
chatTypes.put(MessageType.SYSTEM.ordinal(), SYSTEM);
|
||||
chatTypes.put(MessageType.GAME_INFO.ordinal(), TIP);
|
||||
chatTypes.put(MessageType.SAY_COMMAND.ordinal(), RAW);
|
||||
chatTypes.put(MessageType.MSG_COMMAND.ordinal(), RAW);
|
||||
chatTypes.put(MessageType.TEAM_MSG_COMMAND.ordinal(), RAW);
|
||||
chatTypes.put(MessageType.EMOTE_COMMAND.ordinal(), RAW);
|
||||
chatTypes.put(MessageType.TELLRAW_COMMAND.ordinal(), RAW);
|
||||
chatTypes.put(BuiltinChatType.CHAT.ordinal(), CHAT);
|
||||
chatTypes.put(BuiltinChatType.SYSTEM.ordinal(), SYSTEM);
|
||||
chatTypes.put(BuiltinChatType.GAME_INFO.ordinal(), TIP);
|
||||
chatTypes.put(BuiltinChatType.SAY_COMMAND.ordinal(), RAW);
|
||||
chatTypes.put(BuiltinChatType.MSG_COMMAND.ordinal(), RAW);
|
||||
chatTypes.put(BuiltinChatType.TEAM_MSG_COMMAND.ordinal(), RAW);
|
||||
chatTypes.put(BuiltinChatType.EMOTE_COMMAND.ordinal(), RAW);
|
||||
chatTypes.put(BuiltinChatType.TELLRAW_COMMAND.ordinal(), RAW);
|
||||
}
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren