Change models loading (yes, still WIP)
This commit is contained in:
parent
52fc329a0a
commit
2ece809541
21 changed files with 122 additions and 51 deletions
|
@ -79,7 +79,7 @@ public abstract class ModelLoaderMixin {
|
|||
.filter(state -> modelId.equals(BlockModelShaper.stateToModelLocation(clearLoc, state)))
|
||||
.findFirst();
|
||||
if (stateOptional.isPresent()) {
|
||||
MultiVariant modelVariant = ((BlockModelProvider) block).getModelVariant(modelId, stateOptional.get(), unbakedCache);
|
||||
UnbakedModel modelVariant = ((BlockModelProvider) block).getModelVariant(modelId, stateOptional.get(), unbakedCache);
|
||||
if (modelVariant != null) {
|
||||
cacheAndQueueDependencies(modelId, modelVariant);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue