File tree Expand file tree Collapse file tree 9 files changed +32
-5
lines changed
common/src/main/kotlin/com/lambda
src/main/kotlin/com/lambda/fabric
src/main/kotlin/com/lambda/forge
src/main/kotlin/com/lambda/neoforge Expand file tree Collapse file tree 9 files changed +32
-5
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ import com.lambda.core.Loader
1010import com.lambda.gui.impl.clickgui.windows.tag.CustomModuleWindow
1111import com.lambda.gui.impl.clickgui.windows.tag.TagWindow
1212import com.lambda.module.tag.ModuleTag
13- import com.lambda.threading.runGameScheduled
1413import com.lambda.util.KeyCode
1514import com.mojang.authlib.GameProfile
1615import com.mojang.blaze3d.systems.RenderSystem.recordRenderCall
@@ -21,12 +20,14 @@ import org.apache.logging.log4j.LogManager
2120import org.apache.logging.log4j.Logger
2221import java.awt.Color
2322
23+
2424object Lambda {
2525 const val MOD_NAME = " Lambda"
2626 const val MOD_ID = " lambda"
2727 const val SYMBOL = " λ"
2828 val VERSION : String = LoaderInfo .getVersion()
2929 val LOG : Logger = LogManager .getLogger(SYMBOL )
30+
3031 @JvmStatic
3132 val mc: MinecraftClient by lazy { MinecraftClient .getInstance() }
3233
Original file line number Diff line number Diff line change @@ -8,4 +8,9 @@ object LoaderInfo {
88 @ExpectPlatform
99 @JvmStatic
1010 fun getVersion (): String = " DEV"
11- }
11+
12+ @Contract(pure = true )
13+ @ExpectPlatform
14+ @JvmStatic
15+ fun isDevelopment (): Boolean = true
16+ }
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ import com.lambda.Lambda
44import com.lambda.Lambda.LOG
55import com.lambda.command.CommandRegistry
66import com.lambda.friend.FriendRegistry
7- import com.lambda.graphics.renderer.gui.font.LambdaFont
87import com.lambda.graphics.renderer.gui.font.LambdaEmoji
8+ import com.lambda.graphics.renderer.gui.font.LambdaFont
99import com.lambda.gui.GuiConfigurable
1010import com.lambda.gui.HudGuiConfigurable
1111import com.lambda.interaction.PlayerPacketManager
Original file line number Diff line number Diff line change @@ -61,6 +61,9 @@ dependencies {
6161 includeMod(" net.fabricmc:fabric-language-kotlin:$kotlinFabricVersion " )
6262 includeMod(" baritone-api:baritone-unoptimized-fabric:1.10.2" )
6363
64+ // Disable reflections logging
65+ include(" org.slf4j:slf4j-nop:2.0.13" )
66+
6467 // Common (Do not touch)
6568 common(project(" :common" , configuration = " namedElements" )) { isTransitive = false }
6669 shadowBundle(project(" :common" , configuration = " transformProductionFabric" ))
Original file line number Diff line number Diff line change @@ -8,4 +8,8 @@ object LoaderInfoImpl {
88 FabricLoader .getInstance()
99 .getModContainer(" lambda" ).orElseThrow()
1010 .metadata.version.friendlyString
11- }
11+
12+ @JvmStatic
13+ fun isDevelopment (): Boolean =
14+ FabricLoader .getInstance().isDevelopmentEnvironment
15+ }
Original file line number Diff line number Diff line change @@ -88,6 +88,9 @@ dependencies {
8888 // Fix KFF
8989 compileOnly(kotlin(" stdlib" ))
9090
91+ // Disable reflections logging
92+ include(" org.slf4j:slf4j-nop:2.0.13" )
93+
9194 // Common (Do not touch)
9295 common(project(" :common" , configuration = " namedElements" )) { isTransitive = false }
9396 shadowBundle(project(path = " :common" , configuration = " transformProductionForge" ))
Original file line number Diff line number Diff line change @@ -6,4 +6,8 @@ object LoaderInfoImpl {
66 @JvmStatic
77 fun getVersion (): String =
88 FMLLoader .getLoadingModList().getModFileById(" lambda" ).versionString()
9- }
9+
10+ @JvmStatic
11+ fun isDevelopment (): Boolean =
12+ ! FMLLoader .isProduction()
13+ }
Original file line number Diff line number Diff line change @@ -61,6 +61,9 @@ dependencies {
6161 includeMod(" thedarkcolour:kotlinforforge-neoforge:$kotlinForgeVersion " )
6262 includeMod(" baritone-api:baritone-unoptimized-neoforge:1.10.2" )
6363
64+ // Disable reflections logging
65+ include(" org.slf4j:slf4j-nop:2.0.13" )
66+
6467 // Common (Do not touch)
6568 common(project(" :common" , configuration = " namedElements" )) { isTransitive = false }
6669 shadowBundle(project(path = " :common" , configuration = " transformProductionNeoForge" ))
Original file line number Diff line number Diff line change @@ -7,4 +7,8 @@ object LoaderInfoImpl {
77 @JvmStatic
88 fun getVersion (): String =
99 FMLLoader .getLoadingModList().getModFileById(" lambda" ).versionString()
10+
11+ @JvmStatic
12+ fun isDevelopment (): Boolean =
13+ ! FMLLoader .isProduction()
1014}
You can’t perform that action at this time.
0 commit comments