Fix crash when retrieving blockstate model
This commit is contained in:
parent
4a4ef3b2cd
commit
e753953cba
|
|
@ -121,7 +121,11 @@ public class DynamicModelSystem {
|
|||
identifier = state.getBlock().builtInRegistryHolder().getKey().identifier();
|
||||
}
|
||||
var loadedModels = blockStateDefinitions.get(identifier);
|
||||
return loadedModels.models().get(state);
|
||||
if (loadedModels != null) {
|
||||
return loadedModels.models().get(state);
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user