Skip to content

Commit

Permalink
Fixed issues with example mods for 1.17 and 1.18
Browse files Browse the repository at this point in the history
  • Loading branch information
lukflug committed Mar 9, 2022
1 parent 0f055cc commit 0299801
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ In addition to the core PanelStudio library, there are the PanelStudio-MC suppor
| panelstudio-mc16-forge | example-mod16-forge | Minecraft Forge 1.16.5 |
| panelstudio-mc8-fabric | example-mod8-fabric | Legacy Fabric 1.8.9 |
| panelstudio-mc8-forge | example-mod8-forge | Minecraft Forge 1.8.9 |
| panelstudio-mc17 | example-mod17 & example-mod18 | FabricMC 1.17.x & 1.18.2 |
| panelstudio-mc17 | example-mod17 & example-mod18 | FabricMC 1.17.1 & 1.18.2 |

Minecraft versions or APIs not in this table can also be used with PanelStudio, but the small PanelStudio-MC library has to be ported, which shouldn't be hard in most cases.

Expand Down
5 changes: 4 additions & 1 deletion example-mod17/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,7 @@ shadowJar {
relocate "com.lukflug.panelstudio","com.lukflug.panelstudio_0_2_2"
}

remapJar.dependsOn(shadowJar)
remapJar {
dependsOn shadowJar
inputFile = shadowJar.archiveFile
}
7 changes: 5 additions & 2 deletions example-mod18/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ dependencies {
modImplementation "net.fabricmc:fabric-loader:${loader18}"
modImplementation "net.fabricmc.fabric-api:fabric-api:${api18}"
shadow "com.lukflug:panelstudio:${version}"
shadow("com.lukflug:panelstudio-mc17:${versionmc}") {changing = true}
shadow "com.lukflug:panelstudio-mc17:${versionmc}"
}

processResources {
Expand All @@ -54,4 +54,7 @@ shadowJar {
relocate "com.lukflug.panelstudio","com.lukflug.panelstudio_0_2_2"
}

remapJar.dependsOn(shadowJar)
remapJar {
dependsOn shadowJar
inputFile = shadowJar.archiveFile
}
2 changes: 1 addition & 1 deletion example-mod18/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ loomVersion = 0.12.1
minecraft18 = 1.18.2
mappings18 = 1.18.2+build.2
loader18 = 0.13.3
api18 = 0.47.9+1.18.2
api18 = 0.47.10+1.18.2
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* PanelStudio-MC utility functions designed for FabricMC 1.17.x.
* PanelStudio-MC utility functions designed for FabricMC 1.17.x and 1.18.x.
* This library only depends on the Fabric Yarn mappings and not on the Fabric Mod Loader or the Fabric API.
* @author lukflug
*/
Expand Down

0 comments on commit 0299801

Please sign in to comment.