fix alphabet stuff from #284 (#288)

* fix the dumb

* gotta remove the import oops

Fixes #284
This commit is contained in:
idk what a git repo is
2024-05-31 18:19:55 +02:00
committed by GitHub
parent 1ac2e7f533
commit e6e06038d5
+2 -2
View File
@@ -50,7 +50,7 @@ class Alphabet extends FlxSpriteGroup
// TODO: fix this shit refreshing
public function refreshAlphabetXML(path:String) {
AlphaCharacter.__alphaPath = path;
AlphaCharacter.__alphaPath = Paths.getAssetsRoot() + path;
try {
var xml = new Access(Xml.parse(Assets.getText(path)).firstElement());
AlphaCharacter.boldAnims = [];
@@ -85,7 +85,7 @@ class Alphabet extends FlxSpriteGroup
isBold = bold;
var alphabetPath = Paths.xml("alphabet");
if (alphabetPath != AlphaCharacter.__alphaPath) {
if (Paths.getAssetsRoot() + alphabetPath != AlphaCharacter.__alphaPath) {
refreshAlphabetXML(alphabetPath);
}
#if MOD_SUPPORT else {