-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix crash due to Mixin plugin (#239).
- Loading branch information
1 parent
8facd0f
commit c4984f4
Showing
5 changed files
with
45 additions
and
13 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
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
35 changes: 35 additions & 0 deletions
35
src/main/java/dev/lambdaurora/lambdynlights/LambDynLightsConstants.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,35 @@ | ||
/* | ||
* Copyright © 2024 LambdAurora <[email protected]> | ||
* | ||
* This file is part of LambDynamicLights. | ||
* | ||
* Licensed under the Lambda License. For more information, | ||
* see the LICENSE file. | ||
*/ | ||
|
||
package dev.lambdaurora.lambdynlights; | ||
|
||
import net.fabricmc.loader.api.FabricLoader; | ||
|
||
/** | ||
* Contains constants about LambDynamicLights. | ||
* | ||
* @author LambdAurora | ||
* @version 3.0.1 | ||
* @since 3.0.1 | ||
*/ | ||
public final class LambDynLightsConstants { | ||
/** | ||
* The namespace of this mod, whose value is {@value}. | ||
*/ | ||
public static final String NAMESPACE = "lambdynlights"; | ||
|
||
/** | ||
* {@return {@code true} if this mod is in development mode, or {@code false} otherwise} | ||
*/ | ||
public static boolean isDevMode() { | ||
return FabricLoader.getInstance().getModContainer(NAMESPACE) | ||
.map(modContainer -> modContainer.getMetadata().getVersion().getFriendlyString().endsWith("-local")) | ||
.orElse(true); | ||
} | ||
} |
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