forked from Jorbon/cool_elytra
-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
49 changed files
with
519 additions
and
244 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
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
20 changes: 4 additions & 16 deletions
20
common/src/main/java/nl/enjarai/doabarrelroll/compat/Compat.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 |
---|---|---|
@@ -1,27 +1,15 @@ | ||
package nl.enjarai.doabarrelroll.compat; | ||
|
||
import net.fabricmc.loader.api.FabricLoader; | ||
import net.fabricmc.loader.api.Version; | ||
import net.fabricmc.loader.api.VersionParsingException; | ||
import nl.enjarai.doabarrelroll.platform.Services; | ||
|
||
public class Compat { | ||
public static final Version YACL_MIN_VERSION; | ||
|
||
static { | ||
try { | ||
YACL_MIN_VERSION = Version.parse("3.1.0"); | ||
} catch (VersionParsingException e) { | ||
throw new RuntimeException(e); | ||
} | ||
} | ||
public static final String YACL_MIN_VERSION = "3.1.0"; | ||
|
||
public static boolean isYACLLoaded() { | ||
return FabricLoader.getInstance().isModLoaded("yet_another_config_lib_v3"); | ||
return Services.PLATFORM.checkModLoaded("yet_another_config_lib_v3"); | ||
} | ||
|
||
public static boolean isYACLUpToDate() { | ||
return FabricLoader.getInstance().getModContainer("yet_another_config_lib_v3") | ||
.filter(modContainer -> modContainer.getMetadata().getVersion().compareTo(YACL_MIN_VERSION) >= 0) | ||
.isPresent(); | ||
return Services.PLATFORM.isModVersionAtLeast("yet_another_config_lib_v3", YACL_MIN_VERSION); | ||
} | ||
} |
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
13 changes: 0 additions & 13 deletions
13
common/src/main/java/nl/enjarai/doabarrelroll/fabric/DoABarrelRollFabric.java
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
common/src/main/java/nl/enjarai/doabarrelroll/fabric/DoABarrelRollFabricClient.java
This file was deleted.
Oops, something went wrong.
28 changes: 0 additions & 28 deletions
28
common/src/main/java/nl/enjarai/doabarrelroll/fabric/net/HandshakeClientFabric.java
This file was deleted.
Oops, something went wrong.
48 changes: 0 additions & 48 deletions
48
common/src/main/java/nl/enjarai/doabarrelroll/fabric/net/HandshakeServerFabric.java
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
common/src/main/java/nl/enjarai/doabarrelroll/fabric/net/ServerConfigUpdateClientFabric.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.