Skip to content

Commit f16dac9

Browse files
committed
Bug fix
1 parent 33a2c91 commit f16dac9

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 2.0.16
2+
- Fix a bug with setting sprites
3+
14
# 2.0.15
25
- Hello, Human Resources?!
36
- (Another attempt at a crash fix on android BetterEdit that I personally cannot replicate)

mod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"mac": "2.2074",
77
"ios": "2.2074"
88
},
9-
"version": "v2.0.15",
9+
"version": "v2.0.16",
1010
"id": "alphalaneous.happy_textures",
1111
"name": "Happy Textures :3",
1212
"developer": "Alphalaneous",

src/UIModding.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1052,7 +1052,7 @@ std::vector<std::string> generateValidSprites(const std::string& path, const mat
10521052
}
10531053

10541054
void UIModding::setSprite(CCNode* node, const matjson::Value& attributes) {
1055-
if (!attributes.contains("sprite") || !attributes.contains("sprite-frame")) return;
1055+
if (!attributes.contains("sprite") && !attributes.contains("sprite-frame")) return;
10561056

10571057
matjson::Value sprite = attributes["sprite"];
10581058
if (attributes.contains("sprite-frame")) sprite = attributes["sprite-frame"];

0 commit comments

Comments
 (0)