BusCableBakedModel: Add missing null-check for layer.

This commit is contained in:
Amanda Cameron
2021-08-16 21:38:33 +00:00
parent 72a4e61de2
commit 6e61b0325b

View File

@@ -65,7 +65,7 @@ public final class BusCableBakedModel implements IDynamicBakedModel {
}
}
if (state == null || !state.getValue(BusCableBlock.HAS_CABLE) || !layer.equals(RenderType.solid())) {
if (state == null || !state.getValue(BusCableBlock.HAS_CABLE) || layer == null || !layer.equals(RenderType.solid())) {
return Collections.emptyList();
}