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 merge errors
cassian.cc
7 months ago
5f6ecee5
00c60032
+4
-3
1 changed file
expand all
collapse all
unified
split
common
src
main
java
net
lerariemann
infinity
util
InfinityMethods.java
+4
-3
common/src/main/java/net/lerariemann/infinity/util/InfinityMethods.java
···
32
32
import net.minecraft.world.BlockView;
33
33
import net.minecraft.world.World;
34
34
import net.minecraft.world.WorldAccess;
35
35
+
import net.minecraft.world.biome.Biome;
35
36
36
37
import java.nio.charset.StandardCharsets;
37
38
import java.util.Arrays;
···
83
84
return bl.get();
84
85
}
85
86
static boolean isBiomeInfinity(RegistryEntry<Biome> b) {
86
86
-
return b.getIdAsString().contains("infinity");
87
87
+
return b.getKey().get().getValue().getNamespace().equals("infinity");
87
88
}
88
89
static boolean isBiomeInfinity(BlockView world, BlockPos pos) {
89
90
if (world instanceof WorldAccess acc) {
···
91
92
}
92
93
else return Platform.isFabric()
93
94
&& world.hasBiomes()
94
94
-
&& world.getBiomeFabric(pos) instanceof RegistryEntry<Biome> biome
95
95
-
&& InfinityMethods.isBiomeInfinity(biome);
95
95
+
&& world.getBiomeFabric(pos) instanceof RegistryEntry<Biome>
96
96
+
&& InfinityMethods.isBiomeInfinity(world.getBiomeFabric(pos));
96
97
}
97
98
98
99
/**