Skip to content

Commit d0f80ac

Browse files
committed
continue improving fullbright
1 parent bba4a8b commit d0f80ac

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

src/main/java/com/pikachu/uhcessentials/features/Fullbright.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@ public void toggle() {
5656
}
5757

5858
public void init() {
59-
mc.entityRenderer = new FullbrightEntityRender(mc, mc.getResourceManager());
59+
mc.entityRenderer = new FullbrightEntityRender(mc.entityRenderer.mc, mc.entityRenderer.resourceManager);
6060
}
6161

6262
/*
6363
* This method removes the brightness fog gets when you have night vision by
64-
* removing night vision, recalculating and then saving the new colors
65-
* and applying them to the event that had the night vision brightness
64+
* removing night vision, recalculating the fog colors and then saving the new
65+
* colors to apply to the event that had the night vision brightness
6666
* if full bright was applied
6767
*/
6868
@SubscribeEvent
@@ -106,7 +106,6 @@ public void updateCameraAndRender(float p_181560_1_, long p_181560_2_) {
106106
super.updateCameraAndRender(p_181560_1_, p_181560_2_);
107107
}
108108
}
109-
110109
}
111110

112111
}

src/main/java/com/pikachu/uhcessentials/gui/screens/OptionScreen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
public class OptionScreen extends GuiScreen {
1818

19-
public static ArrayList<Window> windows = new ArrayList<Window>();
19+
public static ArrayList<Window> windows = new ArrayList<>();
2020

2121
private int lastX;
2222
private int lastY;

src/main/resources/_at.cfg

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
public net.minecraft.client.renderer.EntityRenderer func_78466_h(F)V # updateFogColor
1+
public net.minecraft.client.renderer.EntityRenderer func_78466_h(F)V # updateFogColor
2+
public net.minecraft.client.renderer.EntityRenderer field_78531_r # mc
3+
public net.minecraft.client.renderer.EntityRenderer field_147711_ac # resourceManager

0 commit comments

Comments
 (0)