Merge remote-tracking branch 'origin/1.18' into 1.19.2
This commit is contained in:
commit
09939a551f
|
|
@ -28,7 +28,7 @@ import java.util.*;
|
||||||
*/
|
*/
|
||||||
public class ModelBakeEventHelper {
|
public class ModelBakeEventHelper {
|
||||||
// TODO: make into config option
|
// TODO: make into config option
|
||||||
private static final Set<String> INCOMPATIBLE_MODS = ImmutableSet.of("industrialforegoing", "vampirism");
|
private static final Set<String> INCOMPATIBLE_MODS = ImmutableSet.of("industrialforegoing", "vampirism", "elevatorid");
|
||||||
private final Map<ResourceLocation, BakedModel> modelRegistry;
|
private final Map<ResourceLocation, BakedModel> modelRegistry;
|
||||||
private final Set<ResourceLocation> topLevelModelLocations;
|
private final Set<ResourceLocation> topLevelModelLocations;
|
||||||
private final MutableGraph<String> dependencyGraph;
|
private final MutableGraph<String> dependencyGraph;
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ public abstract class TextureMetadataHandlerMixin implements ModernFixClientInte
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public BakedModel onBakedModelLoad(ResourceLocation rl, UnbakedModel rootModel, BakedModel baked, ModelState state, ModelBakery bakery) {
|
public BakedModel onBakedModelLoad(ResourceLocation rl, UnbakedModel rootModel, BakedModel baked, ModelState state, ModelBakery bakery) {
|
||||||
if (!(baked instanceof AbstractCTMBakedModel) && !baked.isCustomRenderer()) {
|
if (rl instanceof ModelResourceLocation && !(baked instanceof AbstractCTMBakedModel) && !baked.isCustomRenderer()) {
|
||||||
Deque<ResourceLocation> dependencies = new ArrayDeque<>();
|
Deque<ResourceLocation> dependencies = new ArrayDeque<>();
|
||||||
Set<ResourceLocation> seenModels = new HashSet<>();
|
Set<ResourceLocation> seenModels = new HashSet<>();
|
||||||
dependencies.push(rl);
|
dependencies.push(rl);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user