Forgot to readd the workaround for the Already Decorating! nonsense
This commit is contained in:
parent
1bd84e3652
commit
96b530d56b
|
@ -4,6 +4,7 @@ import biomesoplenty.common.world.decoration.BOPDecorationManager;
|
||||||
import biomesoplenty.common.world.decoration.BOPWorldFeatures;
|
import biomesoplenty.common.world.decoration.BOPWorldFeatures;
|
||||||
import biomesoplenty.common.world.decoration.IBOPBiome;
|
import biomesoplenty.common.world.decoration.IBOPBiome;
|
||||||
import biomesoplenty.common.world.features.WorldGenBOPFlora;
|
import biomesoplenty.common.world.features.WorldGenBOPFlora;
|
||||||
|
import net.minecraft.world.World;
|
||||||
import net.minecraft.world.biome.BiomeGenBase;
|
import net.minecraft.world.biome.BiomeGenBase;
|
||||||
import net.minecraft.world.gen.feature.WorldGenerator;
|
import net.minecraft.world.gen.feature.WorldGenerator;
|
||||||
|
|
||||||
|
@ -22,7 +23,7 @@ public abstract class BOPBiome extends BiomeGenBase implements IBOPBiome
|
||||||
bopWorldFeatures = BOPDecorationManager.getBiomeFeatures(biomeID);
|
bopWorldFeatures = BOPDecorationManager.getBiomeFeatures(biomeID);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*@Override
|
@Override
|
||||||
public void decorate(World world, Random random, int x, int z)
|
public void decorate(World world, Random random, int x, int z)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
@ -41,7 +42,7 @@ public abstract class BOPBiome extends BiomeGenBase implements IBOPBiome
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}*/
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public WorldGenBOPFlora getRandomWorldGenForBOPFlowers(Random random)
|
public WorldGenBOPFlora getRandomWorldGenForBOPFlowers(Random random)
|
||||||
|
|
|
@ -25,6 +25,8 @@ public class BOPDecorationManager implements IWorldGenerator
|
||||||
BOPWorldFeatures biomeFeatures = getBiomeFeatures(biome.biomeID);
|
BOPWorldFeatures biomeFeatures = getBiomeFeatures(biome.biomeID);
|
||||||
|
|
||||||
for (String featureName : biomeFeatures.getFeatureNames())
|
for (String featureName : biomeFeatures.getFeatureNames())
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
if (featureName.equals("bopFlowersPerChunk"))
|
if (featureName.equals("bopFlowersPerChunk"))
|
||||||
{
|
{
|
||||||
|
@ -43,6 +45,19 @@ public class BOPDecorationManager implements IWorldGenerator
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
Throwable cause = e.getCause();
|
||||||
|
|
||||||
|
if (e.getMessage() != null && e.getMessage().equals("Already decorating!!") || (cause != null && cause.getMessage() != null && cause.getMessage().equals("Already decorating!!")))
|
||||||
|
{
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static BOPWorldFeatures getBiomeFeatures(int biomeID)
|
public static BOPWorldFeatures getBiomeFeatures(int biomeID)
|
||||||
|
|
Loading…
Reference in New Issue