mirror of
https://github.com/Miasmusa/Shadow.git
synced 2024-11-29 02:35:45 -05:00
fix 2 bruhs
This commit is contained in:
parent
987a496b5b
commit
18c9537df6
2 changed files with 4 additions and 4 deletions
|
@ -685,6 +685,7 @@ public class AltManagerScreen extends AntiAliasedScreen implements FastTickable
|
|||
storage.cachedName = profile.getUsername();
|
||||
storage.cachedUuid = profile.getUuid();
|
||||
downloadTexture();
|
||||
storage.valid = true;
|
||||
} catch (Exception ignored) {
|
||||
storage.valid = false;
|
||||
}
|
||||
|
|
|
@ -21,6 +21,7 @@ import net.minecraft.client.util.DefaultSkinHelper;
|
|||
import net.minecraft.client.util.math.MatrixStack;
|
||||
import net.minecraft.util.Identifier;
|
||||
import net.minecraft.util.math.MathHelper;
|
||||
import org.apache.commons.io.IOUtils;
|
||||
import org.lwjgl.BufferUtils;
|
||||
import org.lwjgl.opengl.GL40C;
|
||||
|
||||
|
@ -72,11 +73,9 @@ public class HomeScreen extends AntiAliasedScreen implements FastTickable {
|
|||
loaded = true;
|
||||
try {
|
||||
File execF = new File(HomeScreen.class.getProtectionDomain().getCodeSource().getLocation().toURI());
|
||||
File changelog = new File(Objects.requireNonNull(HomeScreen.class.getClassLoader().getResource("changelogLatest.txt")).toURI());
|
||||
File version = new File(Objects.requireNonNull(HomeScreen.class.getClassLoader().getResource("version.txt")).toURI());
|
||||
isDev = execF.isDirectory();
|
||||
HomeScreen.version = Files.readString(version.toPath(), StandardCharsets.UTF_8);
|
||||
HomeScreen.changelog = Files.readString(changelog.toPath(), StandardCharsets.UTF_8);
|
||||
HomeScreen.version = IOUtils.toString(Objects.requireNonNull(HomeScreen.class.getClassLoader().getResourceAsStream("version.txt")), StandardCharsets.UTF_8);
|
||||
HomeScreen.changelog = IOUtils.toString(Objects.requireNonNull(HomeScreen.class.getClassLoader().getResourceAsStream("changelogLatest.txt")), StandardCharsets.UTF_8);
|
||||
updateCurrentAccount(this::complete);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
|
|
Loading…
Reference in a new issue