forked from LambdAurora/LambDynamicLights
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
79 additions
and
104 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
## Changelog | ||
- port to 1.20.5 | ||
- port to 1.20.6 |
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
22 changes: 22 additions & 0 deletions
22
common/src/main/java/org/thinkingstudio/ryoamiclights/ModPlatform.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,22 @@ | ||
package org.thinkingstudio.ryoamiclights; | ||
|
||
import dev.architectury.injectables.annotations.ExpectPlatform; | ||
|
||
import java.nio.file.Path; | ||
|
||
public class ModPlatform { | ||
@ExpectPlatform | ||
public static boolean isModLoaded(String modid) { | ||
throw new AssertionError(); | ||
} | ||
|
||
@ExpectPlatform | ||
public static boolean isDevEnvironment() { | ||
throw new AssertionError(); | ||
} | ||
|
||
@ExpectPlatform | ||
public static Path getConfigDir() { | ||
throw new AssertionError(); | ||
} | ||
} |
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,3 +1,2 @@ | ||
## Changelog | ||
- remove the mixin for embeddium (only forge) | ||
- remove architectury dependency | ||
- port to 1.20.6 |
19 changes: 19 additions & 0 deletions
19
fabric/src/main/java/org/thinkingstudio/ryoamiclights/fabric/ModPlatformImpl.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,19 @@ | ||
package org.thinkingstudio.ryoamiclights.fabric; | ||
|
||
import net.fabricmc.loader.api.FabricLoader; | ||
|
||
import java.nio.file.Path; | ||
|
||
public class ModPlatformImpl { | ||
public static boolean isModLoaded(String modid) { | ||
return FabricLoader.getInstance().isModLoaded(modid); | ||
} | ||
|
||
public static boolean isDevEnvironment() { | ||
return FabricLoader.getInstance().isDevelopmentEnvironment(); | ||
} | ||
|
||
public static Path getConfigDir() { | ||
return FabricLoader.getInstance().getConfigDir(); | ||
} | ||
} |
31 changes: 0 additions & 31 deletions
31
fabric/src/main/java/org/thinkingstudio/ryoamiclights/fabric/RyoamicLightsCompatImpl.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
## Changelog | ||
- remove the mixin for embeddium (only forge) | ||
- remove architectury dependency | ||
- port to 1.20.6 |
21 changes: 21 additions & 0 deletions
21
neoforge/src/main/java/org/thinkingstudio/ryoamiclights/neoforge/ModPlatformImpl.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,21 @@ | ||
package org.thinkingstudio.ryoamiclights.neoforge; | ||
|
||
import net.neoforged.fml.ModList; | ||
import net.neoforged.fml.loading.FMLLoader; | ||
import net.neoforged.fml.loading.FMLPaths; | ||
|
||
import java.nio.file.Path; | ||
|
||
public class ModPlatformImpl { | ||
public static boolean isModLoaded(String modid) { | ||
return ModList.get().isLoaded(modid); | ||
} | ||
|
||
public static boolean isDevEnvironment() { | ||
return !FMLLoader.isProduction(); | ||
} | ||
|
||
public static Path getConfigDir() { | ||
return FMLPaths.CONFIGDIR.get(); | ||
} | ||
} |
32 changes: 0 additions & 32 deletions
32
...orge/src/main/java/org/thinkingstudio/ryoamiclights/neoforge/RyoamicLightsCompatImpl.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