Merge remote-tracking branch 'origin/1.18' into 1.19.2
This commit is contained in:
commit
e6f30956db
|
|
@ -4,8 +4,6 @@ import com.mojang.datafixers.util.Pair;
|
|||
import net.minecraft.client.renderer.block.model.BlockModel;
|
||||
import net.minecraft.client.resources.model.UnbakedModel;
|
||||
import net.minecraft.client.resources.model.Material;
|
||||
import net.minecraft.client.renderer.block.model.MultiVariant;
|
||||
import net.minecraft.client.renderer.block.model.multipart.MultiPart;
|
||||
import net.minecraft.resources.ResourceLocation;
|
||||
import org.embeddedt.modernfix.annotation.ClientOnlyMixin;
|
||||
import org.embeddedt.modernfix.duck.ICachedMaterialsModel;
|
||||
|
|
@ -19,7 +17,8 @@ import java.util.Collections;
|
|||
import java.util.Set;
|
||||
import java.util.function.Function;
|
||||
|
||||
@Mixin(value = {MultiVariant.class, MultiPart.class, BlockModel.class})
|
||||
/* only cache BlockModel to prevent issues with CTM on Fabric */
|
||||
@Mixin(value = {BlockModel.class})
|
||||
@ClientOnlyMixin
|
||||
public class VanillaModelMixin implements ICachedMaterialsModel {
|
||||
private Collection<Material> materialsCache = null;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user