Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
KrLite committed Jul 23, 2024
1 parent 06220dc commit 53d05b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### Updates

- **Exposed** nothing to classpath.
- **Used** transitive dependencies and exposed nothing to classpath.
- **Improved** development environment check to prevent file spamming as a dependency.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class NightAutoConfig implements ModInitializer {
public void onInitialize() {
if (FabricLoader.getInstance().isDevelopmentEnvironment()) {
var location = getClass().getProtectionDomain().getCodeSource().getLocation();
boolean jarred = location.toString().startsWith("jar:");
boolean jarred = location.toString().endsWith(".jar");

if (!jarred) {
LOGGER.warn(
Expand Down

0 comments on commit 53d05b2

Please sign in to comment.