Skip to content

Commit

Permalink
Make CI nightlies recognized as snapshots again
Browse files Browse the repository at this point in the history
  • Loading branch information
Roadhog360 committed Nov 1, 2024
1 parent f8ba965 commit 687b12e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def details = versionDetails()
def isPlainTag = details.getCommitDistance() == 0
def noCommitHash = providers.gradleProperty("noCommitHash").isPresent()
if (!isPlainTag && !noCommitHash) {
version += "-" + details.gitHash
version += "-nightly-" + details.gitHash
}

// If we have uncommitted changes, say so.
Expand Down
1 change: 0 additions & 1 deletion src/main/java/ganymedes01/etfuturum/EtFuturum.java
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,6 @@ public void preInit(FMLPreInitializationEvent event) {
networkWrapper.registerMessage(AttackYawHandler.class, AttackYawMessage.class, 7, Side.CLIENT);

String buildVer = event.getModMetadata().version;
Reference.SNAPSHOT_BUILD = buildVer.toLowerCase().contains("snapshot") || buildVer.contains("alpha") || buildVer.toLowerCase().contains("beta") || buildVer.toLowerCase().contains("rc");
if (!Reference.SNAPSHOT_BUILD && !Reference.DEV_ENVIRONMENT) {
MCLibModules.updateCheckAPI.submitModTask(Reference.MOD_ID, Reference.VERSION_URL);
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ganymedes01/etfuturum/lib/Reference.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ public class Reference {
public static final String ENTITY_TEXTURE_PATH = ITEM_BLOCK_TEXTURE_PATH + "textures/entities/";

public static boolean launchConfigWarning;
public static boolean SNAPSHOT_BUILD = false;
public static boolean SNAPSHOT_BUILD = Tags.VERSION.toLowerCase().contains("snapshot") || Tags.VERSION.toLowerCase().contains("nightly") || Tags.VERSION.toLowerCase().contains("alpha") || Tags.VERSION.toLowerCase().contains("beta") || Tags.VERSION.toLowerCase().contains("rc");
}

0 comments on commit 687b12e

Please sign in to comment.