Skip to content

Commit

Permalink
Fix bug in arch loom support (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpenilla committed Mar 6, 2023
1 parent 3d5a1cc commit 43faee0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ plugins {
id 'com.gradle.plugin-publish' version '1.1.0'
}

version = '2.7.3'
version = '2.7.4'
group = 'com.modrinth.minotaur'
archivesBaseName = 'Minotaur'
description = 'Modrinth plugin for publishing builds to the website!'
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/modrinth/minotaur/TaskModrinthUpload.java
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@ public void apply() {

if (!ext.getLoaders().get().contains("quilt") // don't count quilt-loom twice
&& getProject().getExtensions().findByName("loom") != null) {
String loomPlatform = getProject().getProviders().gradleProperty("loom.platform").getOrNull();
Object loomPlatform = getProject().findProperty("loom.platform");
if (loomPlatform != null) {
getLogger().debug("Adding loader '{}' because 'loom' extension was found and loom.platform={}.", loomPlatform, loomPlatform);
add(ext.getLoaders(), loomPlatform);
add(ext.getLoaders(), (String) loomPlatform);
} else {
getLogger().debug("Adding loader 'fabric' because 'loom' extension was found.");
add(ext.getLoaders(), "fabric");
Expand Down

0 comments on commit 43faee0

Please sign in to comment.