Is there an existing issue for this?
Summary
an enum value from an API function can't key a table made with the same enum from Enums
Where did you encounter the bug?
Server
What platform(s) does this happen on?
All platforms
Polytoria version / commit
2.0.22
Godot and .NET versions
No response
System details
No response
Build configuration
Official downloaded build
Steps to reproduce
script:
local e = Enums.CharacterModelState.Idle
local t = {[e] = 1}
local lp = Players.LocalPlayer
lp.Character.CurrentState = e
print(e, lp.Character.CurrentState, t[lp.Character.CurrentState])
Expected behavior
table keys not caring about the enum source
Actual behavior
tables being indexed differently by api returns and Enums values, like they're different objects
Logs / console output
Screenshots, video, sample project, or world file
Reproducibility
Always
Additional details
No response
Is there an existing issue for this?
Summary
an enum value from an API function can't key a table made with the same enum from
EnumsWhere did you encounter the bug?
Server
What platform(s) does this happen on?
All platforms
Polytoria version / commit
2.0.22
Godot and .NET versions
No response
System details
No response
Build configuration
Official downloaded build
Steps to reproduce
script:
Expected behavior
table keys not caring about the enum source
Actual behavior
tables being indexed differently by api returns and
Enumsvalues, like they're different objectsLogs / console output
Screenshots, video, sample project, or world file
Reproducibility
Always
Additional details
No response