diff options
author | SHsuperCM <shsupercm@gmail.com> | 2022-10-27 15:45:43 +0300 |
---|---|---|
committer | SHsuperCM <shsupercm@gmail.com> | 2022-10-27 17:20:37 +0300 |
commit | a75d755df8e0c551cd40701017018719667ff6eb (patch) | |
tree | cf15d133065ffa864bbe56f1780b0dc9cf40a9f4 /src/main/java/shcm/shsupercm/fabric/citresewn/mixin/ModelLoaderMixin.java | |
parent | 237adf03cc55b4120330e2fbc4bc4178c0361f2d (diff) | |
download | CITResewn-a75d755df8e0c551cd40701017018719667ff6eb.tar.gz CITResewn-a75d755df8e0c551cd40701017018719667ff6eb.tar.bz2 CITResewn-a75d755df8e0c551cd40701017018719667ff6eb.zip |
22w43a Bandage
Diffstat (limited to 'src/main/java/shcm/shsupercm/fabric/citresewn/mixin/ModelLoaderMixin.java')
-rw-r--r-- | src/main/java/shcm/shsupercm/fabric/citresewn/mixin/ModelLoaderMixin.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main/java/shcm/shsupercm/fabric/citresewn/mixin/ModelLoaderMixin.java b/src/main/java/shcm/shsupercm/fabric/citresewn/mixin/ModelLoaderMixin.java index df11ac9..215c596 100644 --- a/src/main/java/shcm/shsupercm/fabric/citresewn/mixin/ModelLoaderMixin.java +++ b/src/main/java/shcm/shsupercm/fabric/citresewn/mixin/ModelLoaderMixin.java @@ -1,5 +1,6 @@ package shcm.shsupercm.fabric.citresewn.mixin; +import net.minecraft.client.MinecraftClient; import net.minecraft.client.color.block.BlockColors; import net.minecraft.client.render.model.ModelLoader; import net.minecraft.resource.ResourceManager; @@ -10,6 +11,8 @@ import org.spongepowered.asm.mixin.injection.Inject; import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; import shcm.shsupercm.fabric.citresewn.cit.ActiveCITs; +import java.util.Map; + /** * Initializes the (re)loading of active cits in the resource manager. * @see ActiveCITs @@ -21,9 +24,9 @@ public class ModelLoaderMixin { */ @Inject(method = "<init>", at = @At(value = "INVOKE", ordinal = 0, target = "Lnet/minecraft/util/profiler/Profiler;push(Ljava/lang/String;)V")) - private void citresewn$loadCITs(ResourceManager resourceManager, BlockColors blockColors, Profiler profiler, int i, CallbackInfo ci) { + private void citresewn$loadCITs(BlockColors blockColors, Profiler profiler, Map jsonUnbakedModels, Map blockStates, CallbackInfo ci) { profiler.push("citresewn:reloading_cits"); - ActiveCITs.load(resourceManager, profiler); + ActiveCITs.load(MinecraftClient.getInstance().getResourceManager(), profiler); profiler.pop(); } } |