Fallback on the biome id when the real name can't be obtained.

This commit is contained in:
Adubbz 2019-01-15 22:28:44 +11:00
parent bfb2364b8d
commit 6ce42cf36c
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ public class BOPCommand extends CommandBase
EntityPlayerMP player = getCommandSenderAsPlayer(sender);
World world = player.world;
BlockPos closestBiomePos = biomeToFind == null ? null : BiomeUtils.spiralOutwardsLookingForBiome(world, biomeToFind, player.posX, player.posZ);
String biomeName = biomeToFind != null && FMLCommonHandler.instance().getSide() == Side.CLIENT ? biomeToFind.getBiomeName() : "Undefined";
String biomeName = biomeToFind != null && FMLCommonHandler.instance().getSide() == Side.CLIENT ? biomeToFind.getBiomeName() : biomeToFind.getRegistryName().toString();
if (closestBiomePos != null)
{