Only apply full brightness when in replay
This commit is contained in:
@@ -46,7 +46,7 @@ public class FullBrightness implements Extra {
|
|||||||
|
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
public void preRender(TickEvent.RenderTickEvent event) {
|
public void preRender(TickEvent.RenderTickEvent event) {
|
||||||
if (active) {
|
if (active && module.getReplayHandler() != null) {
|
||||||
if (event.phase == TickEvent.Phase.START) {
|
if (event.phase == TickEvent.Phase.START) {
|
||||||
originalGamma = gameSettings.gammaSetting;
|
originalGamma = gameSettings.gammaSetting;
|
||||||
gameSettings.gammaSetting = 1000;
|
gameSettings.gammaSetting = 1000;
|
||||||
|
|||||||
Reference in New Issue
Block a user