Fix model bakery issues

This commit is contained in:
embeddedt 2023-05-02 10:07:19 -04:00
parent 0de67936c1
commit 8a06ef1322
No known key found for this signature in database
GPG Key ID: A69433EC199B5613
2 changed files with 1 additions and 2 deletions

View File

@ -25,7 +25,7 @@ public abstract class ModelBakerImplMixin {
@Shadow @Final private Function<Material, TextureAtlasSprite> modelTextureGetter;
@Inject(method = "bake", at = @At("HEAD"), cancellable = true, remap = false)
@Inject(method = "bake", at = @At("HEAD"), cancellable = true)
public void getOrLoadBakedModelDynamic(ResourceLocation arg, ModelState arg2, CallbackInfoReturnable<BakedModel> cir) {
ModelBakery.BakedCacheKey key = new ModelBakery.BakedCacheKey(arg, arg2.getRotation(), arg2.isUvLocked());
BakedModel existing = this.field_40571.bakedCache.get(key);

View File

@ -5,7 +5,6 @@ import com.google.common.cache.CacheBuilder;
import com.google.common.cache.RemovalNotification;
import com.google.common.collect.ImmutableList;
import net.minecraft.client.color.block.BlockColors;
import net.minecraft.client.renderer.block.model.BlockModel;
import net.minecraft.client.renderer.texture.TextureAtlasSprite;
import net.minecraft.client.resources.model.*;
import net.minecraft.resources.ResourceLocation;