tangled
alpha
login
or
join now
codexarchonic.nekoweb.org
/
ProjectInfinity
0
fork
atom
Inspired by 2020's April Fools' 20w14infinite Snapshot, this mod brings endless randomly generated dimensions into Minecraft.
0
fork
atom
overview
issues
6
pulls
pipelines
Fix a crash without Create installed
cassian.cc
1 year ago
a712447d
3d267ff3
+4
-8
1 changed file
expand all
collapse all
unified
split
common
src
main
java
net
lerariemann
infinity
util
InfinityMethods.java
+4
-8
common/src/main/java/net/lerariemann/infinity/util/InfinityMethods.java
reviewed
···
181
181
}
182
182
183
183
/**
184
184
-
* Gets an Infinity Portal's item colour - hard set as a light blue.
185
185
-
*/
186
186
-
static int getInfinityPortalColor(ItemStack stack, int layer) {
187
187
-
return -16717057;
188
188
-
}
189
189
-
190
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
284
-
return Platform.isModLoaded("create") && Platform.getMod("create").getVersion().charAt(0) != '6';
277
277
+
if (Platform.isModLoaded("create")) {
278
278
+
return Platform.getMod("create").getVersion().charAt(0) != '6';
279
279
+
}
280
280
+
return false;
285
281
}
286
282
}