This repository has been archived by the owner on May 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Full Support for indigo's Shader compatibility.
Refactor Error handling
- Loading branch information
Showing
9 changed files
with
86 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 0 additions & 31 deletions
31
src/main/java/me/modmuss50/optifabric/mixin/MixinIndigo.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
src/main/java/me/modmuss50/optifabric/mod/OptifabricError.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package me.modmuss50.optifabric.mod; | ||
|
||
public class OptifabricError { | ||
|
||
private static String error = null; | ||
private static String errorURL = "https://github.com/modmuss50/OptiFabric/blob/master/README.md"; | ||
private static String helpButtonText = "Open Help"; | ||
|
||
public static boolean hasError(){ | ||
return getError() != null; | ||
} | ||
|
||
public static String getError() { | ||
return error; | ||
} | ||
|
||
public static String getErrorURL() { | ||
return errorURL; | ||
} | ||
|
||
public static void setError(String error){ | ||
OptifabricError.error = error; | ||
} | ||
|
||
public static void setError(String error, String url){ | ||
setError(error); | ||
OptifabricError.errorURL = url; | ||
} | ||
|
||
public static String getHelpButtonText() { | ||
return helpButtonText; | ||
} | ||
|
||
public static void setHelpButtonText(String helpButtonText) { | ||
OptifabricError.helpButtonText = helpButtonText; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters