add more configuration supports

This commit is contained in:
Tnze
2023-11-19 02:55:30 +08:00
parent 326761e3e8
commit 3761fdbefe
4 changed files with 58 additions and 7 deletions

View File

@ -88,7 +88,7 @@ func (m *Manager) handlePlayerChat(packet pk.Packet) error {
if !ok {
return InvalidChatPacket
}
ct := m.p.WorldInfo.RegistryCodec.ChatType.FindByID(chatType.ID)
ct := m.c.Registries.ChatType.FindByID(chatType.ID)
if ct == nil {
return InvalidChatPacket
}
@ -141,7 +141,7 @@ func (m *Manager) handleDisguisedChat(packet pk.Packet) error {
return err
}
ct := m.p.WorldInfo.RegistryCodec.ChatType.FindByID(chatType.ID)
ct := m.c.Registries.ChatType.FindByID(chatType.ID)
if ct == nil {
return InvalidChatPacket
}