-
Notifications
You must be signed in to change notification settings - Fork 3
feat: stonecutter + 26.2 support #51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
3333561
feat: split libs.versions.toml
Alex33856 77d5853
feat: stonecutter
Alex33856 996f8e9
feat: 26.2
Alex33856 c1ed498
chore: bump 26.2 sbapi
Alex33856 4ac7b03
fix: stonecutter comments
Alex33856 19d662a
fix: jar name
Alex33856 40d2cd8
feat: consolidate jars into one location
Alex33856 275bd57
fix: use McFont.self instead
Alex33856 cba9b79
fix: use local replacement
Alex33856 b19678c
fix: cleaner replacement here
Alex33856 d8fd19e
chore: use project instead of rootProject for source file
Alex33856 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| [versions] | ||
| minecraft = "26.1.2" | ||
| mcRange = "~26.1" | ||
| fabric-api = "0.148.0+26.1.2" | ||
| skyblock-api = "4.1.13" | ||
| lattice = "2.0.1+26.1" | ||
| modmenu = "18.0.0-alpha.6" | ||
|
|
||
| [libraries] | ||
| minecraft = { module = "com.mojang:minecraft", version.ref = "minecraft" } | ||
| fabric-api = { module = "net.fabricmc.fabric-api:fabric-api", version.ref = "fabric-api" } | ||
| skyblock-api = { module = "tech.thatgravyboat:skyblock-api", version.ref = "skyblock-api" } | ||
| lattice = { module = "com.moulberry:lattice", version.ref = "lattice" } | ||
| modmenu = { module = "com.terraformersmc:modmenu", version.ref = "modmenu" } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| [versions] | ||
| minecraft = "26.2" | ||
| mcRange = "~26.2" | ||
| fabric-api = "0.152.0+26.2" | ||
| skyblock-api = "4.2.1" | ||
| lattice = "2.0.1+26.1" | ||
| modmenu = "18.0.0-alpha.6" | ||
|
|
||
| [libraries] | ||
| minecraft = { module = "com.mojang:minecraft", version.ref = "minecraft" } | ||
| fabric-api = { module = "net.fabricmc.fabric-api:fabric-api", version.ref = "fabric-api" } | ||
| skyblock-api = { module = "tech.thatgravyboat:skyblock-api", version.ref = "skyblock-api" } | ||
| lattice = { module = "com.moulberry:lattice", version.ref = "lattice" } | ||
| modmenu = { module = "com.terraformersmc:modmenu", version.ref = "modmenu" } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,15 +1,34 @@ | ||
| pluginManagement { | ||
| repositories { | ||
| maven { | ||
| name = "Fabric" | ||
| url = uri("https://maven.fabricmc.net/") | ||
| } | ||
| maven("https://maven.fabricmc.net/") { name = "Fabric" } | ||
| maven("https://maven.kikugie.dev/snapshots") { name = "KikuGie Snapshots" } | ||
| mavenCentral() | ||
| gradlePluginPortal() | ||
| } | ||
| } | ||
|
|
||
| // Should match your modid | ||
| rootProject.name = "skyblock-item-list" | ||
|
|
||
| val versions = listOf("26.1") | ||
| plugins { | ||
| id("dev.kikugie.stonecutter") version "0.9.6" | ||
| } | ||
|
|
||
| stonecutter { | ||
| create(rootProject) { | ||
| version("26.2") | ||
| version("26.1", "26.1.2") | ||
| } | ||
| } | ||
|
|
||
| val versions = listOf("26.2", "26.1") | ||
|
|
||
| dependencyResolutionManagement { | ||
| versionCatalogs { | ||
| versions.forEach { | ||
| create("versionedLibs${it.replace(".", "")}") { | ||
| from(files("gradle/${it.replace(".", "_")}.versions.toml")) | ||
| } | ||
| } | ||
| } | ||
| } | ||
|
|
33 changes: 33 additions & 0 deletions
33
src/main/java/com/operationpotato/itemlist/mixin/LatticeConfigScreenMixin.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| package com.operationpotato.itemlist.mixin; | ||
| //? if >=26.2 { | ||
| import com.moulberry.lattice.LatticeConfigScreen; | ||
| import net.minecraft.client.Minecraft; | ||
| import net.minecraft.client.gui.screens.Screen; | ||
| import org.jetbrains.annotations.Nullable; | ||
| import org.spongepowered.asm.mixin.Final; | ||
| import org.spongepowered.asm.mixin.Mixin; | ||
| import org.spongepowered.asm.mixin.Overwrite; | ||
| import org.spongepowered.asm.mixin.Shadow; | ||
|
|
||
| @SuppressWarnings("UnstableApiUsage") | ||
| @Mixin(LatticeConfigScreen.class) | ||
| public class LatticeConfigScreenMixin { | ||
| @Shadow | ||
| @Final | ||
| private @Nullable Screen closeTo; | ||
|
|
||
| /** | ||
| * @author alex | ||
| * @reason Fix onClose not working on 26.2 | ||
| */ | ||
| @Overwrite | ||
| public void onClose() { | ||
| Minecraft minecraft = Minecraft.getInstance(); | ||
| if (this.closeTo != null) { | ||
| minecraft.gui.setScreen(this.closeTo); | ||
| } else { | ||
| minecraft.gui.setScreen(null); | ||
| } | ||
| } | ||
| } | ||
| //? } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| plugins { | ||
| id("dev.kikugie.stonecutter") | ||
| } | ||
| stonecutter active "26.2" |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.