mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-15 13:04:36 +00:00
Fixes to Dialogs + Full integration testing script, Fully Tested in CLI mode
This commit is contained in:
parent
3d988c932f
commit
bd29c7fc5c
2 changed files with 37 additions and 0 deletions
|
|
@ -328,6 +328,9 @@ public sealed class DialogNbtParser
|
|||
if (value is Dictionary<string, object> dialogData)
|
||||
return new DialogActionDefinition(DialogActionKind.ShowDialog, NestedDialog: new DialogNbtParser().Parse(dialogData), Type: type);
|
||||
|
||||
if (value is int protocolId)
|
||||
return new DialogActionDefinition(DialogActionKind.ShowDialog, DialogReferenceId: protocolId, Type: type);
|
||||
|
||||
return new DialogActionDefinition(DialogActionKind.ShowDialog, Value: value.ToString(), Type: type);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue