Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Change ModPlugin name, change LunaSettings path usage to address possible crashes * Fix crash when lunasettings is not enabled * Fixed behavior for gate scan revealing gates in marketless systems and ability states * Refactor method to gateIntelDoesNotExist * Fix method (for real this time) * Update changelog.txt
- Loading branch information
1 parent
83f217d
commit 44dd0a3
Showing
11 changed files
with
50 additions
and
36 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
.idea/artifacts/ScanThoseGates.xml → .idea/artifacts/ScanThoseGates_jar.xml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,21 @@ | ||
package scanthosegates; | ||
|
||
import lunalib.lunaSettings.LunaSettings; | ||
import lunalib.lunaSettings.LunaSettingsListener; | ||
|
||
import static scanthosegates.ScannerModPlugin.lunaLibEnabled; | ||
|
||
public class LunaSettingsChangedListener implements LunaSettingsListener { | ||
@Override | ||
public void settingsChanged(String idOfModWithChangedSettings) { | ||
if (idOfModWithChangedSettings.equals(ModPlugin.ID)) { | ||
ModPlugin.readSettings(); | ||
if (idOfModWithChangedSettings.equals(ScannerModPlugin.ID)) { | ||
ScannerModPlugin.readSettings(); | ||
} | ||
} | ||
|
||
public static void addToManagerIfNeeded() { | ||
if(lunaLibEnabled && !LunaSettings.hasSettingsListenerOfClass(LunaSettingsChangedListener.class)) { | ||
LunaSettings.addSettingsListener(new LunaSettingsChangedListener()); | ||
} | ||
} | ||
} |
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