From 3400ea1676e234c2d3ee81fc981c999e0ed93343 Mon Sep 17 00:00:00 2001 From: Adubbz Date: Fri, 22 Nov 2013 20:09:53 +1100 Subject: [PATCH] Reduced pixie spawns, disabled lighting in the Promised Land (As a result, performance should be far less of a problem than it previously was) --- apis/worldcore/interfaces/IWCFog.java | 8 -------- build.xml | 2 +- .../biomesoplenty/configuration/BOPEntities.java | 2 +- .../world/WorldProviderPromised.java | 16 +++++++++++++++- 4 files changed, 17 insertions(+), 11 deletions(-) delete mode 100644 apis/worldcore/interfaces/IWCFog.java diff --git a/apis/worldcore/interfaces/IWCFog.java b/apis/worldcore/interfaces/IWCFog.java deleted file mode 100644 index 441f7d6a8..000000000 --- a/apis/worldcore/interfaces/IWCFog.java +++ /dev/null @@ -1,8 +0,0 @@ -package worldcore.interfaces; - -public interface IWCFog -{ - public int getFogColour(); - - public float getFogCloseness(); -} \ No newline at end of file diff --git a/build.xml b/build.xml index f7f4b711c..fd04a7116 100644 --- a/build.xml +++ b/build.xml @@ -12,7 +12,7 @@ - + diff --git a/common/biomesoplenty/configuration/BOPEntities.java b/common/biomesoplenty/configuration/BOPEntities.java index c770f8d57..f1446a269 100644 --- a/common/biomesoplenty/configuration/BOPEntities.java +++ b/common/biomesoplenty/configuration/BOPEntities.java @@ -121,7 +121,7 @@ public class BOPEntities { if (Biomes.promisedLandForest.isPresent() && Biomes.promisedLandSwamp.isPresent() && Biomes.promisedLandPlains.isPresent() && Biomes.promisedLandShrub.isPresent()) { - EntityRegistry.addSpawn(EntityPixie.class, 8, 1, 3, EnumCreatureType.monster, Biomes.promisedLandForest.get(), Biomes.promisedLandSwamp.get(), Biomes.promisedLandPlains.get(), Biomes.promisedLandShrub.get()); + EntityRegistry.addSpawn(EntityPixie.class, 4, 1, 3, EnumCreatureType.monster, Biomes.promisedLandForest.get(), Biomes.promisedLandSwamp.get(), Biomes.promisedLandPlains.get(), Biomes.promisedLandShrub.get()); } } } diff --git a/common/biomesoplenty/world/WorldProviderPromised.java b/common/biomesoplenty/world/WorldProviderPromised.java index c7ab6dc7f..dc89a25e8 100644 --- a/common/biomesoplenty/world/WorldProviderPromised.java +++ b/common/biomesoplenty/world/WorldProviderPromised.java @@ -1,17 +1,19 @@ package biomesoplenty.world; +import net.minecraft.client.multiplayer.WorldClient; import net.minecraft.util.ChunkCoordinates; import net.minecraft.util.MathHelper; import net.minecraft.util.Vec3; import net.minecraft.world.WorldProvider; import net.minecraft.world.chunk.IChunkProvider; +import worldcore.interfaces.IWCLighting; import biomesoplenty.api.Biomes; import biomesoplenty.api.Blocks; import biomesoplenty.configuration.configfile.BOPConfigurationIDs; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; -public class WorldProviderPromised extends WorldProvider +public class WorldProviderPromised extends WorldProvider implements IWCLighting { public boolean hasNoSky = false; @@ -152,4 +154,16 @@ public class WorldProviderPromised extends WorldProvider { return new ChunkProviderPromised(worldObj, worldObj.getSeed()); } + + @Override + public boolean isLightingDisabled() + { + return true; + } + + @Override + public Float[] getLightingMultipliers(WorldClient worldclient) + { + return new Float[] { 0.92F, 0.98F, 0.95F }; + } } \ No newline at end of file