Skip to content

Commit

Permalink
Fix lua plain field output
Browse files Browse the repository at this point in the history
  • Loading branch information
kagenocookie committed Oct 19, 2024
1 parent 4e4ba3c commit 8c1aba1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OutputTypes/GenerateLua.cs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ string KvToString(KeyValuePair<string, MethodDef> val)
.Append($" (Property: {gtstr} {ststr})");
} else {
var access = field.IsPrivate ? "private" : "public";
sb.Append("---@field ").Append(friendlyTypeName).Append(' ').Append(access);
sb.Append("---@field ").Append(fieldName).Append(' ').Append(friendlyTypeName).Append(' ').Append(access);
}
if (field.IsStatic) {
sb.Append(" static");
Expand Down

0 comments on commit 8c1aba1

Please sign in to comment.