Skip to content

Commit 63111ed

Browse files
committed
Merge remote-tracking branch 'origin/1.19.4' into 1.20
2 parents 4a0219e + 427a92f commit 63111ed

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

fabric/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ dependencies {
5050
modIncludeImplementation(fabricApi.module("fabric-screen-api-v1", rootProject.fabric_api_version)) { exclude group: 'net.fabricmc', module: 'fabric-loader' }
5151
modIncludeImplementation(fabricApi.module("fabric-command-api-v2", rootProject.fabric_api_version)) { exclude group: 'net.fabricmc', module: 'fabric-loader' }
5252
modImplementation(fabricApi.module("fabric-model-loading-api-v1", rootProject.fabric_api_version)) { exclude group: 'net.fabricmc', module: 'fabric-loader' }
53+
modCompileOnly(fabricApi.module("fabric-models-v0", "0.84.0+1.20.1")) { exclude group: 'net.fabricmc', module: 'fabric-loader' }
5354
modImplementation(fabricApi.module("fabric-resource-loader-v0", rootProject.fabric_api_version)) { exclude group: 'net.fabricmc', module: 'fabric-loader' }
5455
modImplementation(fabricApi.module("fabric-data-generation-api-v1", rootProject.fabric_api_version)) { exclude group: 'net.fabricmc', module: 'fabric-loader' }
5556
modImplementation("com.terraformersmc:modmenu:${rootProject.modmenu_version}") { transitive false }
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package org.embeddedt.modernfix.fabric.mixin.perf.dynamic_resources;
2+
3+
import net.fabricmc.fabric.impl.client.model.ModelLoadingRegistryImpl;
4+
import net.minecraft.client.resources.model.ModelBakery;
5+
import org.embeddedt.modernfix.annotation.ClientOnlyMixin;
6+
import org.embeddedt.modernfix.annotation.RequiresMod;
7+
import org.spongepowered.asm.mixin.Mixin;
8+
import org.spongepowered.asm.mixin.injection.At;
9+
import org.spongepowered.asm.mixin.injection.Redirect;
10+
11+
@Mixin(ModelLoadingRegistryImpl.LoaderInstance.class)
12+
@RequiresMod("fabric-models-v0")
13+
@ClientOnlyMixin
14+
public class LoaderInstanceMixin {
15+
@Redirect(method = "finish", at = @At(value = "FIELD", target = "Lnet/fabricmc/fabric/impl/client/model/ModelLoadingRegistryImpl$LoaderInstance;loader:Lnet/minecraft/client/resources/model/ModelBakery;"), require = 0)
16+
private void keepLoader(ModelLoadingRegistryImpl.LoaderInstance instance, ModelBakery value) {
17+
/* allow loading models to happen later */
18+
}
19+
}

0 commit comments

Comments
 (0)