Fallback on the biome id when the real name can't be obtained.
This commit is contained in:
parent
bfb2364b8d
commit
6ce42cf36c
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue