restricted brightness inversion to dungeons only
This commit is contained in:
parent
9baceb8e3c
commit
46f55b22d9
1 changed files with 9 additions and 3 deletions
|
@ -11,6 +11,7 @@ import net.minecraftforge.common.DimensionManager;
|
||||||
import StevenDimDoors.mod_pocketDim.CloudRenderBlank;
|
import StevenDimDoors.mod_pocketDim.CloudRenderBlank;
|
||||||
import StevenDimDoors.mod_pocketDim.mod_pocketDim;
|
import StevenDimDoors.mod_pocketDim.mod_pocketDim;
|
||||||
import StevenDimDoors.mod_pocketDim.config.DDProperties;
|
import StevenDimDoors.mod_pocketDim.config.DDProperties;
|
||||||
|
import StevenDimDoors.mod_pocketDim.core.DimensionType;
|
||||||
import StevenDimDoors.mod_pocketDim.core.PocketManager;
|
import StevenDimDoors.mod_pocketDim.core.PocketManager;
|
||||||
import StevenDimDoors.mod_pocketDim.ticking.CustomLimboPopulator;
|
import StevenDimDoors.mod_pocketDim.ticking.CustomLimboPopulator;
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
|
@ -88,13 +89,18 @@ public class PocketProvider extends WorldProvider
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void generateLightBrightnessTable()
|
protected void generateLightBrightnessTable()
|
||||||
{
|
{
|
||||||
|
if(PocketManager.getDimensionData(this.dimensionId).getDimensionType() == DimensionType.POCKET)
|
||||||
|
{
|
||||||
|
super.generateLightBrightnessTable();
|
||||||
|
return;
|
||||||
|
}
|
||||||
float modifier = 0.0F;
|
float modifier = 0.0F;
|
||||||
|
|
||||||
for (int steps = 0; steps <= 15; ++steps)
|
for (int steps = 0; steps <= 15; ++steps)
|
||||||
{
|
{
|
||||||
float var3 = 1.0F - steps / 15.0F;
|
float var3 = (float) (Math.pow(steps,1.5) / Math.pow(15.0F,1.5));
|
||||||
this.lightBrightnessTable[steps] = var3;
|
this.lightBrightnessTable[15-steps] = var3;
|
||||||
System.out.println( this.lightBrightnessTable[steps]+"light");
|
System.out.println( this.lightBrightnessTable[steps]+"light");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue