Skip to content

Commit

Permalink
fix: update to 1.19.1 and 1.19.2, support for 1.19 dropped
Browse files Browse the repository at this point in the history
  • Loading branch information
sekwah41 committed Aug 13, 2022
1 parent 4855fc2 commit 45d3db8
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
11 changes: 7 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ minecraft {
// stable_# Stables are built at the discretion of the MCP team.
// Use non-default mappings at your own risk. they may not always work.
// Simply re-run your setup task after changing the mappings to update your workspace.
mappings channel: 'official', version: '1.19'
mappings channel: 'official', version: '1.19.2'
//mappings channel: 'parchment', version: '2021.12.19-1.18.1'
//mappings channel: 'parchment', version: '2021.07.21-1.17'

Expand Down Expand Up @@ -155,12 +155,12 @@ dependencies {
// Specify the version of Minecraft to use, If this is any group other then 'net.minecraft' it is assumed
// that the dep is a ForgeGradle 'patcher' dependency. And it's patches will be applied.
// The userdev artifact is a special name and will get all sorts of transformations applied to it.
minecraft 'net.minecraftforge:forge:1.19-41.1.0'
minecraft 'net.minecraftforge:forge:1.19.2-43.0.8'

implementation 'org.spongepowered:mixin:0.8.5'
annotationProcessor 'org.spongepowered:mixin:0.8.5:processor'

implementation fg.deobf("com.sekwah:SekCLib:0.4.1")
implementation fg.deobf("com.sekwah:SekCLib:0.4.2")
// Trick intellij to allow for better editing in here for the discord task
// compile "org.apache.httpcomponents:httpmime:4.5.13"
//implementation fg.deobf("curse.maven:torohealth-damage-indicators-245733:3556931")
Expand Down Expand Up @@ -225,13 +225,15 @@ task srcJar(type: Jar) {
build.dependsOn it
from sourceSets.main.allSource
classifier = 'sources'
baseName "${archivesBaseName}${project.mc_version}"
from file("LICENSE")
}

task deobfJar(type: Jar) {
build.dependsOn it
from sourceSets.main.output
classifier = 'deobf'
baseName "${archivesBaseName}${project.mc_version}"
from file("LICENSE")
}

Expand Down Expand Up @@ -307,7 +309,8 @@ curseforge {
changelog = "${project.github}/blob/${branch}/CHANGELOG.md"
changelogType = 'markdown'
releaseType = 'release'
addGameVersion '1.19'
addGameVersion '1.19.1'
addGameVersion '1.19.2'

relations {
requiredDependency 'sekclib'
Expand Down
4 changes: 3 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ org.gradle.jvmargs=-Xmx3G
org.gradle.daemon=false

title=Naruto Mod
archive=NarutoMod-1.19
archive=NarutoMod
# This is just for the jar outputs
mc_version=-1.19-1.19.2
modid=narutomod
package=com.sekwah
vendor=Sekwah
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/sekwah/narutomod/item/NarutoItems.java
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public ItemStack makeIcon() {
-> new NarutoArmorItem(NarutoArmorMaterial.CHARACTER_CLOTHES, EquipmentSlot.CHEST, new Item.Properties().tab(NINJA_ARMOR)));

public static final RegistryObject<Item> LONELY_MARCH = ITEMS.register("lonely_march", ()
-> new RecordItem(41, NarutoSounds.LONELY_MARCH, new Item.Properties().tab(CreativeModeTab.TAB_MISC).stacksTo(1).rarity(Rarity.RARE)));
-> new RecordItem(41, NarutoSounds.LONELY_MARCH, new Item.Properties().tab(CreativeModeTab.TAB_MISC).stacksTo(1).rarity(Rarity.RARE), 46 * 20));

public static final RegistryObject<Item> FABRIC = ITEMS.register("fabric", ()
-> new Item(new Item.Properties().tab(NINJA_MATERIALS)));
Expand Down
7 changes: 4 additions & 3 deletions src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
modLoader="javafml"
# Should be higher but the error for this beign wrong is really poor and tied to the forge version.
loaderVersion="[41,)"
issueTrackerURL="https://github.com/sekwah41/Naruto-Mod/issues"
license="All rights reserved"
Expand All @@ -17,21 +18,21 @@ A mod that adds new items and other features to the game that are from/based on
[[dependencies.narutomod]]
modId="forge"
mandatory=true
versionRange="[41.0.94,)"
versionRange="[42,44)"
ordering="NONE"
side="BOTH"

# https://maven.apache.org/enforcer/enforcer-rules/versionRanges.html
[[dependencies.narutomod]]
modId="minecraft"
mandatory=true
versionRange="[1.19]"
versionRange="[1.19.1,1.19.2]"
ordering="NONE"
side="BOTH"

[[dependencies.narutomod]]
modId="sekclib"
mandatory=true
versionRange="[0.4.1,)"
versionRange="[0.4.2,)"
ordering="NONE"
side="BOTH"

0 comments on commit 45d3db8

Please sign in to comment.