Fixed Mixin and Frozen Registry Errors
This commit is contained in:
parent
8edddec2b6
commit
73687e3401
10 changed files with 89 additions and 110 deletions
|
@ -6,7 +6,6 @@ import net.minecraft.client.color.block.BlockColors;
|
|||
import net.minecraft.client.resources.model.ModelBakery;
|
||||
import net.minecraft.client.resources.model.UnbakedModel;
|
||||
import net.minecraft.resources.ResourceLocation;
|
||||
import net.minecraft.server.packs.resources.ResourceManager;
|
||||
import net.minecraft.util.profiling.ProfilerFiller;
|
||||
|
||||
import org.spongepowered.asm.mixin.Final;
|
||||
|
@ -26,11 +25,7 @@ public abstract class ModelBakeryMixin {
|
|||
|
||||
@Inject(method = "<init>*", at = @At("TAIL"))
|
||||
private void bclib_findEmissiveModels(
|
||||
ResourceManager resourceManager,
|
||||
BlockColors blockColors,
|
||||
ProfilerFiller profiler,
|
||||
int mipmap,
|
||||
CallbackInfo info
|
||||
BlockColors blockColors, ProfilerFiller profilerFiller, Map map, Map map2, CallbackInfo ci
|
||||
) {
|
||||
//CustomModelBakery.setModelsLoaded(false);
|
||||
if (ModIntegrationAPI.hasCanvas()) {
|
||||
|
|
|
@ -1,25 +1,18 @@
|
|||
package org.betterx.bclib.mixin.client;
|
||||
|
||||
import org.betterx.bclib.client.BCLibClient;
|
||||
|
||||
import net.minecraft.client.resources.model.ModelBakery;
|
||||
import net.minecraft.client.resources.model.ModelManager;
|
||||
import net.minecraft.server.packs.resources.ResourceManager;
|
||||
import net.minecraft.util.profiling.ProfilerFiller;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.At;
|
||||
import org.spongepowered.asm.mixin.injection.Inject;
|
||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
|
||||
|
||||
@Mixin(ModelManager.class)
|
||||
public class ModelManagerMixin {
|
||||
@Inject(method = "prepare", at = @At("HEAD"))
|
||||
private void bclib_loadCustomModels(
|
||||
ResourceManager resourceManager,
|
||||
ProfilerFiller profilerFiller,
|
||||
CallbackInfoReturnable<ModelBakery> info
|
||||
) {
|
||||
BCLibClient.modelBakery.loadCustomModels(resourceManager);
|
||||
}
|
||||
//TODO: 1.19.3 Disabled for now
|
||||
// @Inject(method = "prepare", at = @At("HEAD"))
|
||||
// private void bclib_loadCustomModels(
|
||||
// ResourceManager resourceManager,
|
||||
// ProfilerFiller profilerFiller,
|
||||
// CallbackInfoReturnable<ModelBakery> info
|
||||
// ) {
|
||||
// BCLibClient.modelBakery.loadCustomModels(resourceManager);
|
||||
// }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue