Allow block state to be null when getting transmitter quads, this if was a relic from when I had some of the information stored in the block's state.
@@ -82,7 +82,6 @@ public class TransmitterBakedModel implements IBakedModel {
if (side != null) {
return ImmutableList.of();
}
- if (state != null) {
if (extraData.hasProperty(ModelProperties.DOWN_CONNECTION) && extraData.hasProperty(ModelProperties.UP_CONNECTION) &&
extraData.hasProperty(ModelProperties.NORTH_CONNECTION) && extraData.hasProperty(ModelProperties.SOUTH_CONNECTION) &&
extraData.hasProperty(ModelProperties.WEST_CONNECTION) && extraData.hasProperty(ModelProperties.EAST_CONNECTION)) {
@@ -126,7 +125,6 @@ public class TransmitterBakedModel implements IBakedModel {
return modelCache.get(hash);
}
//TODO: print error about missing data?
- }
return bakedVariant.getQuads(state, side, rand, extraData);
}
