Fixes to Dialogs + Full integration testing script, Fully Tested in CLI mode

This commit is contained in:
Anon 2026-06-14 01:05:12 +02:00
parent 3d988c932f
commit bd29c7fc5c
2 changed files with 37 additions and 0 deletions

View file

@ -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);
}