]Changes] CommandRegistry reads end biomse using new BiomeAPI
This commit is contained in:
parent
bdee723117
commit
477429352e
1 changed files with 1 additions and 2 deletions
|
@ -3,7 +3,6 @@ package org.betterx.betterend.commands;
|
||||||
import org.betterx.bclib.api.v2.levelgen.biomes.BCLBiome;
|
import org.betterx.bclib.api.v2.levelgen.biomes.BCLBiome;
|
||||||
import org.betterx.bclib.api.v2.poi.BCLPoiType;
|
import org.betterx.bclib.api.v2.poi.BCLPoiType;
|
||||||
import org.betterx.bclib.util.BlocksHelper;
|
import org.betterx.bclib.util.BlocksHelper;
|
||||||
import org.betterx.betterend.registry.EndBiomes;
|
|
||||||
import org.betterx.betterend.registry.EndPoiTypes;
|
import org.betterx.betterend.registry.EndPoiTypes;
|
||||||
import org.betterx.betterend.world.biome.EndBiome;
|
import org.betterx.betterend.world.biome.EndBiome;
|
||||||
import org.betterx.worlds.together.world.event.WorldBootstrap;
|
import org.betterx.worlds.together.world.event.WorldBootstrap;
|
||||||
|
@ -126,7 +125,7 @@ public class CommandRegistry {
|
||||||
|
|
||||||
private static int teleportToNextBiome(CommandContext<CommandSourceStack> ctx) throws CommandSyntaxException {
|
private static int teleportToNextBiome(CommandContext<CommandSourceStack> ctx) throws CommandSyntaxException {
|
||||||
final CommandSourceStack source = ctx.getSource();
|
final CommandSourceStack source = ctx.getSource();
|
||||||
List<EndBiome> biomes = EndBiomes.ALL_BE_BIOMES;
|
List<BCLBiome> biomes = EndBiome.getAllBeBiomes();
|
||||||
|
|
||||||
if (biomeIndex < 0 || biomeIndex >= biomes.size()) {
|
if (biomeIndex < 0 || biomeIndex >= biomes.size()) {
|
||||||
source.sendFailure(Component.literal("Failed to find the next Biome...")
|
source.sendFailure(Component.literal("Failed to find the next Biome...")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue