Skip to content

Commit

Permalink
Forge
Browse files Browse the repository at this point in the history
  • Loading branch information
PanSzelescik committed May 2, 2024
1 parent dd466d7 commit 6f7921c
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 50 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@ jobs:
with:
name: Fabric
path: fabric/build/libs/
# - name: Publish Forge
# uses: actions/upload-artifact@v3
# with:
# name: Forge
# path: forge/build/libs/
# - name: Publish NeoForge
# uses: actions/upload-artifact@v3
# with:
# name: NeoForge
# path: neoforged/build/libs/
- name: Publish Forge
uses: actions/upload-artifact@v3
with:
name: Forge
path: forge/build/libs/
- name: Publish NeoForge
uses: actions/upload-artifact@v3
with:
name: NeoForge
path: neoforged/build/libs/
# - name: Publish Quilt
# uses: actions/upload-artifact@v3
# with:
Expand Down
68 changes: 34 additions & 34 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,40 +31,40 @@ jobs:
uses: gradle/gradle-build-action@v2
with:
arguments: build
# - name: Publish Forge to CurseForge and Modrinth
# uses: Kir-Antipov/mc-publish@v3.3
# with:
# modrinth-id: 4sQDl6he
# modrinth-featured: true
# modrinth-unfeature-mode: intersection
# modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
#
# curseforge-id: 658780
# curseforge-token: ${{ secrets.CURSEFORGE_API_KEY }}
#
# files: |
# forge/build/libs/!(*-@(dev|dev-shadow|sources|javadoc)).jar
# forge/build/libs/*-@(dev|dev-shadow|sources|javadoc).jar
#
# name: ""
# version-type: release
#
# dependencies: |
# jei(optional){modrinth:jei}{curseforge:238222}
# rei(optional){modrinth:rei}{curseforge:310111}
#
# loaders: |
# forge
# modrinth-game-versions: |
# 1.20.5
# curseforge-game-versions: |
# 1.20.5
# java: |
# 21
#
# retry-attempts: 2
# retry-delay: 10000
# fail-mode: fail
- name: Publish Forge to CurseForge and Modrinth
uses: Kir-Antipov/mc-publish@v3.3
with:
modrinth-id: 4sQDl6he
modrinth-featured: true
modrinth-unfeature-mode: intersection
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}

curseforge-id: 658780
curseforge-token: ${{ secrets.CURSEFORGE_API_KEY }}

files: |
forge/build/libs/!(*-@(dev|dev-shadow|sources|javadoc)).jar
forge/build/libs/*-@(dev|dev-shadow|sources|javadoc).jar
name: ""
version-type: release

dependencies: |
jei(optional){modrinth:jei}{curseforge:238222}
rei(optional){modrinth:rei}{curseforge:310111}
loaders: |
forge
modrinth-game-versions: |
1.20.6
curseforge-game-versions: |
1.20.6
java: |
21
retry-attempts: 2
retry-delay: 10000
fail-mode: fail
- name: Publish NeoForge to CurseForge and Modrinth
uses: Kir-Antipov/mc-publish@v3.3
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public boolean isForge() {
}

public @NotNull Ingredient getColorIngredient(@NotNull Colors color) {
return Ingredient.of(color.getDyeColor().getTag());
var dyeColor = color.getDyeColor();
return dyeColor == null ? Ingredient.EMPTY : Ingredient.of(dyeColor.getTag());
}
}
4 changes: 2 additions & 2 deletions forge/src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
modLoader = "javafml"
loaderVersion = "[44,)"
loaderVersion = "[50,)"
license = "All Rights Reserved"
issueTrackerURL="https://github.com/PanSzelescik/colorize/issues"
[[mods]]
Expand All @@ -20,7 +20,7 @@ side = "BOTH"
[[dependencies.colorize]]
modId = "minecraft"
mandatory = true
versionRange = "[1.20.5,)"
versionRange = "[1.20.6,)"
ordering = "NONE"
side = "BOTH"
[[dependencies.colorize]]
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ org.gradle.jvmargs=-Xmx8G

minecraft_version=1.20.6
//enabled_platforms=fabric,forge,neoforge,quilt
enabled_platforms=fabric,neoforge
enabled_platforms=fabric,forge,neoforge

archives_base_name=colorize
mod_version=1.10.1
Expand All @@ -13,7 +13,7 @@ maven_group=pl.panszelescik.colorize
fabric_loader_version=0.15.10
fabric_api_version=0.97.8+1.20.6

forge_version=1.20.4-49.0.48
forge_version=1.20.6-50.0.4

neoforge_version=20.6.1-beta

Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pluginManagement {

include("common")
include("fabric")
//include("forge")
include("forge")
include("neoforged")
//include("quilt")

Expand Down

0 comments on commit 6f7921c

Please sign in to comment.