(World world)
| 160 | } |
| 161 | |
| 162 | public static boolean hasSkyLayers(World world) |
| 163 | { |
| 164 | if (worldSkyLayers == null) |
| 165 | { |
| 166 | return false; |
| 167 | } |
| 168 | else |
| 169 | { |
| 170 | int i = world.provider.getDimensionId(); |
| 171 | |
| 172 | if (i >= 0 && i < worldSkyLayers.length) |
| 173 | { |
| 174 | CustomSkyLayer[] acustomskylayer = worldSkyLayers[i]; |
| 175 | return acustomskylayer == null ? false : acustomskylayer.length > 0; |
| 176 | } |
| 177 | else |
| 178 | { |
| 179 | return false; |
| 180 | } |
| 181 | } |
| 182 | } |
| 183 | } |
no test coverage detected