Skip to content

Commit

Permalink
update stonecutter + switch to 1.20.6
Browse files Browse the repository at this point in the history
  • Loading branch information
not-coded committed Oct 26, 2024
1 parent 9616d55 commit 8e6c475
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
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 {
}

plugins {
id "dev.kikugie.stonecutter" version "0.5-beta.1"
id "dev.kikugie.stonecutter" version "0.5-beta.3"
}

stonecutter {
Expand Down
28 changes: 14 additions & 14 deletions src/main/java/net/notcoded/wayfix/mixin/WindowMixin.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,18 @@

//? if >=1.20 {

/*import net.minecraft.client.util.Icons;
import net.minecraft.client.util.Icons;
import net.minecraft.resource.ResourcePack;
import java.io.IOException;
*///?} elif 1.19.3 {
import java.util.ArrayList;
//?} elif 1.19.3 {
/*import java.util.ArrayList;
import java.util.Arrays;
import net.minecraft.resource.InputSupplier;
//?}
*///?}

//? if <1.20 {
import java.io.InputStream;
//?}
/*import java.io.InputStream;
*///?}

/*
- Credits to moehreag for most of the code
Expand Down Expand Up @@ -73,21 +73,21 @@ private Monitor getMonitor(MonitorTracker instance) {
@Inject(method = "setIcon", at = @At("HEAD"), cancellable = true)
//? if >=1.20 {

/*private void injectIcon(ResourcePack resourcePack, Icons icons, CallbackInfo ci) {
*///?} elif 1.19.3 {
private void injectIcon(InputSupplier<InputStream> smallIconSupplier, InputSupplier<InputStream> bigIconSupplier, CallbackInfo ci) {
//?} elif <1.19.3 {
private void injectIcon(ResourcePack resourcePack, Icons icons, CallbackInfo ci) {
//?} elif 1.19.3 {
/*private void injectIcon(InputSupplier<InputStream> smallIconSupplier, InputSupplier<InputStream> bigIconSupplier, CallbackInfo ci) {
*///?} elif <1.19.3 {

/*private void injectIcon(InputStream icon16, InputStream icon32, CallbackInfo ci) {
*///?}
if (isWayland()) {
//? if >=1.20 {
/*try {
try {
DesktopFileInjector.setIcon(icons.getIcons(resourcePack));
} catch (IOException ignored) { }
*///?} elif 1.19.3 {
DesktopFileInjector.setIcon(new ArrayList<>(Arrays.asList(smallIconSupplier, bigIconSupplier)));
//?} elif <1.19.3 {
//?} elif 1.19.3 {
/*DesktopFileInjector.setIcon(new ArrayList<>(Arrays.asList(smallIconSupplier, bigIconSupplier)));
*///?} elif <1.19.3 {

/*DesktopFileInjector.setIcon(icon16, icon32);
*///?}
Expand Down
2 changes: 1 addition & 1 deletion stonecutter.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
id "dev.kikugie.stonecutter"
}
stonecutter.active "1.19.3" /* [SC] DO NOT EDIT */
stonecutter.active "1.20.6" /* [SC] DO NOT EDIT */

stonecutter.registerChiseled tasks.register("chiseledBuild", stonecutter.chiseled) {
setGroup "project"
Expand Down

0 comments on commit 8e6c475

Please sign in to comment.