Improve bee logic performance

This commit is contained in:
mezz committed 2014-11-16 16:14:41 -08:00
1 parent 9dd73935d7
commit ae3f75e22a
2 files changed
+2 -2

No files matched your search

@@ -226,7 +226,7 @@ public class Bee extends IndividualLiving implements IBee {
BiomeGenBase biome = BiomeGenBase.getBiome(housing.getBiomeId());
if(biome == null)
return EnumErrorCode.NOSKY.ordinal();
if (!BiomeDictionary.isBiomeOfType(biome, BiomeDictionary.Type.NETHER) && !world.canBlockSeeTheSky(housing.getXCoord(), housing.getYCoord() + 3, housing.getZCoord())
if (!EnumTemperature.isBiomeHellish(biome) && !world.canBlockSeeTheSky(housing.getXCoord(), housing.getYCoord() + 3, housing.getZCoord())
&& !genome.getCaveDwelling() && !housing.isSunlightSimulated())
return EnumErrorCode.NOSKY.ordinal();