diff options
Diffstat (limited to 'src/main/java/gregtech')
-rw-r--r-- | src/main/java/gregtech/common/GT_Client.java | 75 |
1 files changed, 38 insertions, 37 deletions
diff --git a/src/main/java/gregtech/common/GT_Client.java b/src/main/java/gregtech/common/GT_Client.java index 839dcd2367..80ab070c08 100644 --- a/src/main/java/gregtech/common/GT_Client.java +++ b/src/main/java/gregtech/common/GT_Client.java @@ -150,44 +150,45 @@ public class GT_Client extends GT_Proxy GL11.glEnd(); GL11.glPopMatrix(); } - - @SubscribeEvent - public void manipulateDensity(EntityViewRenderEvent.FogDensity event) { - if(GT_Pollution.mPlayerPollution > (GT_Mod.gregtechproxy.mPollutionSmogLimit)){ - event.density = (0.15f*(Math.min(GT_Pollution.mPlayerPollution/((float)GT_Mod.gregtechproxy.mPollutionSourRainLimit),1.0f)))+0.1f; - event.setCanceled(true); - } - } - - @SubscribeEvent - public void manipulateColor(EntityViewRenderEvent.FogColors event) { - if(GT_Pollution.mPlayerPollution > GT_Mod.gregtechproxy.mPollutionSmogLimit){ - event.red = 140f/255f; - event.green = 80f/255f; - event.blue = 40f/255f; - } - } - - @SubscribeEvent - public void manipulateGrassColor(BiomeEvent.GetGrassColor event) { - if(GT_Pollution.mPlayerPollution > GT_Mod.gregtechproxy.mPollutionSmogLimit){ - event.newColor = 0xD2691E; - } - } - @SubscribeEvent - public void manipulateWaterColor(BiomeEvent.GetWaterColor event) { - if(GT_Pollution.mPlayerPollution > GT_Mod.gregtechproxy.mPollutionSmogLimit){ - event.newColor = 0x556B2F; - } - } - - @SubscribeEvent - public void manipulateFoliageColor(BiomeEvent.GetFoliageColor event) { - if(GT_Pollution.mPlayerPollution > GT_Mod.gregtechproxy.mPollutionSmogLimit){ - event.newColor = 0xCD853F; - } - } + //TODO less bad + //@SubscribeEvent + //public void manipulateDensity(EntityViewRenderEvent.FogDensity event) { + // if(GT_Pollution.mPlayerPollution > (GT_Mod.gregtechproxy.mPollutionSmogLimit)){ + // event.density = (0.15f*(Math.min(GT_Pollution.mPlayerPollution/((float)GT_Mod.gregtechproxy.mPollutionSourRainLimit),1.0f)))+0.1f; + // event.setCanceled(true); + // } + //} + + //@SubscribeEvent + //public void manipulateColor(EntityViewRenderEvent.FogColors event) { + // if(GT_Pollution.mPlayerPollution > GT_Mod.gregtechproxy.mPollutionSmogLimit){ + // event.red = 140f/255f; + // event.green = 80f/255f; + // event.blue = 40f/255f; + // } + //} + + //@SubscribeEvent + //public void manipulateGrassColor(BiomeEvent.GetGrassColor event) { + // if(GT_Pollution.mPlayerPollution > GT_Mod.gregtechproxy.mPollutionSmogLimit){ + // event.newColor = 0xD2691E; + // } + //} + + //@SubscribeEvent + //public void manipulateWaterColor(BiomeEvent.GetWaterColor event) { + // if(GT_Pollution.mPlayerPollution > GT_Mod.gregtechproxy.mPollutionSmogLimit){ + // event.newColor = 0x556B2F; + // } + //} + + //@SubscribeEvent + //public void manipulateFoliageColor(BiomeEvent.GetFoliageColor event) { + // if(GT_Pollution.mPlayerPollution > GT_Mod.gregtechproxy.mPollutionSmogLimit){ + // event.newColor = 0xCD853F; + // } + //} public boolean isServerSide() { return true; |