Repository navigation
Commit af02fbd
1.7.23 - Update SpriteHelper type comparisons to use ClassIDType instead of string (K0lb3#74)
* Update SpriteHelper type comparisons to use ClassIDType instead of string
After certain changes in the past, doing simple String comparison on the type attribute of objects will no longer work as expected - should be comparing against the ClassIDType enum instead. (or do obj.type.name == "string name")
* use ClassIDType.UnknownType instead of "" when failing to get the type
Co-authored-by: Rudolf Kolbe <rkolbe96@gmail.com>1 parent 61ab4fc commit af02fbd
2 files changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
24 | | - | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
48 | | - | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| |||
0 commit comments