mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-25 14:36:29 +01:00
More NPE Guards
This commit is contained in:
parent
a6a4078356
commit
064dc1e247
1 changed files with 1 additions and 1 deletions
|
@ -137,7 +137,7 @@ public abstract class CopycatModel extends BakedModelWrapperWithData {
|
|||
|
||||
@Nullable
|
||||
public static BlockState getMaterial(ModelData data) {
|
||||
BlockState material = data.get(MATERIAL_PROPERTY);
|
||||
BlockState material = data == null ? null : data.get(MATERIAL_PROPERTY);
|
||||
return material == null ? AllBlocks.COPYCAT_BASE.getDefaultState() : material;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue