Inspired by 2020's April Fools' 20w14infinite Snapshot, this mod brings endless randomly generated dimensions into Minecraft.

Fix a crash without Create installed

+4 -8
+4 -8
common/src/main/java/net/lerariemann/infinity/util/InfinityMethods.java
··· 181 181 } 182 182 183 183 /** 184 - * Gets an Infinity Portal's item colour - hard set as a light blue. 185 - */ 186 - static int getInfinityPortalColor(ItemStack stack, int layer) { 187 - return -16717057; 188 - } 189 - 190 - /** 191 184 * For use in color providers with blocks which the block entity sets color for. 192 185 */ 193 186 static int getBlockEntityColor(BlockState state, BlockRenderView world, BlockPos pos, int tintIndex) { ··· 281 274 } 282 275 283 276 static boolean isCreateLoaded() { 284 - return Platform.isModLoaded("create") && Platform.getMod("create").getVersion().charAt(0) != '6'; 277 + if (Platform.isModLoaded("create")) { 278 + return Platform.getMod("create").getVersion().charAt(0) != '6'; 279 + } 280 + return false; 285 281 } 286 282 }