fix: some bug

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2022-07-06 21:57:36 +08:00
parent b6d7847a79
commit d8d03149df
5 changed files with 29 additions and 17 deletions

View File

@ -6,7 +6,7 @@ let bukkitChatInvoke: BukkitChatInvoke
abstract class BukkitChatInvoke {
private downgrade: boolean = false
protected RemapUtils: any
protected ComponentSerializer:any
protected ComponentSerializer: any
protected ChatSerializer: any
protected nmsChatSerializerMethodName: string
@ -39,6 +39,8 @@ abstract class BukkitChatInvoke {
if (nmsChatMessageTypeClass.isEnum()) {
this.chatMessageTypes = nmsChatMessageTypeClass.getEnumConstants()
break
} else if (nmsChatMessageTypeClass.getName() == 'int') {
break
}
}
}