chore: update to 1.20.5
ci/woodpecker/push/jfmod Pipeline was successful Details
ci/woodpecker/tag/jfmod Pipeline was successful Details

This commit is contained in:
Johannes Frohnmeyer 2024-04-25 12:39:02 +02:00
parent 91632aa068
commit 9ae05db5c5
Signed by: Johannes
GPG Key ID: E76429612C2929F4
4 changed files with 19 additions and 12 deletions

View File

@ -1,3 +1,9 @@
## Note
This mod no longer seems to be required as of MC 1.20.5.
Nonetheless, interactions between mods might still cause an issue, so I will keep updating it for the time being.
If you experience no lag spikes, you can safely remove this mod.
## Original Description
In vanilla minecraft, the list of resource packs is refreshed by scanning all possible sources synchronously. In vanilla minecraft, the list of resource packs is refreshed by scanning all possible sources synchronously.
Generally, this is not a problem, but in the resource pack organizer screen, this scan is performed whenever it is resized and every twenty ticks. Generally, this is not a problem, but in the resource pack organizer screen, this scan is performed whenever it is resized and every twenty ticks.

View File

@ -1,15 +1,16 @@
plugins { plugins {
id("jfmod") version "1.5-SNAPSHOT" id("jfmod") version "1.6-SNAPSHOT"
} }
allprojects { group = "io.gitlab.jfronny" } allprojects { group = "io.gitlab.jfronny" }
base.archivesName = "async-pack-scan" base.archivesName = "async-pack-scan"
jfMod { jfMod {
minecraftVersion = "1.20.4" minecraftVersion = "1.20.5"
yarn("build.1") yarn("build.1")
loaderVersion = "0.15.0" loaderVersion = "0.15.10"
libJfVersion = "3.14.1" libJfVersion = "3.15.3"
fabricApiVersion = "0.97.6+1.20.5"
modrinth { modrinth {
projectId = "async-pack-scan" projectId = "async-pack-scan"
@ -27,11 +28,11 @@ loom {
} }
dependencies { dependencies {
include(modImplementation(fabricApi.module("fabric-resource-loader-v0", "0.96.4+1.20.4"))!!) include(modImplementation("net.fabricmc.fabric-api:fabric-resource-loader-v0")!!)
modImplementation("io.gitlab.jfronny.libjf:libjf-base:${jfMod.libJfVersion.get()}") modImplementation("io.gitlab.jfronny.libjf:libjf-base")
// For testing in dev environment // For testing in dev environment
modLocalRuntime("net.fabricmc.fabric-api:fabric-api:0.91.1+1.20.4") modLocalRuntime("net.fabricmc.fabric-api:fabric-api")
modLocalRuntime("io.gitlab.jfronny.libjf:libjf-devutil:${jfMod.libJfVersion.get()}") modLocalRuntime("io.gitlab.jfronny.libjf:libjf-devutil")
modLocalRuntime("com.terraformersmc:modmenu:9.0.0-pre.1") modLocalRuntime("com.terraformersmc:modmenu:10.0.0-beta.1")
} }

View File

@ -74,7 +74,7 @@ public abstract class ResourcePackOrganizerMixin {
this.resourcePackManager.setEnabledProfiles( this.resourcePackManager.setEnabledProfiles(
Lists.reverse(this.enabledPacks) Lists.reverse(this.enabledPacks)
.stream() .stream()
.map(ResourcePackProfile::getName) .map(ResourcePackProfile::getId)
.collect(ImmutableList.toImmutableList()) .collect(ImmutableList.toImmutableList())
); );
} }

View File

@ -1,7 +1,7 @@
package io.gitlab.jfronny.aps.impl; package io.gitlab.jfronny.aps.impl;
import io.gitlab.jfronny.commons.logging.Logger; import io.gitlab.jfronny.commons.logger.SystemLoggerPlus;
public class AsyncPackScan { public class AsyncPackScan {
public static final Logger LOG = Logger.forName("async-pack-scan"); public static final SystemLoggerPlus LOG = SystemLoggerPlus.forName("async-pack-scan");
} }