Added Eyecon as indicator that Ambient Lighting is enabled

Added ShutdownHook to Lighting Handler to prevent high Brightness Values from being saved
This commit is contained in:
CrushedPixel
2015-06-01 13:57:33 +02:00
parent bb773570e9
commit 2918e163d2
4 changed files with 33 additions and 5 deletions

View File

@@ -3,6 +3,7 @@ package eu.crushedpixel.replaymod.utils;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.Gui;
import net.minecraft.client.gui.GuiScreen;
import org.lwjgl.util.Point;
public class TooltipRenderer extends Gui {
@@ -17,8 +18,9 @@ public class TooltipRenderer extends Gui {
int screenWidth, screenHeight;
if(parent == null) {
screenWidth = mc.displayWidth;
screenHeight = mc.displayHeight;
Point screenDimensions = MouseUtils.getScaledDimensions();
screenWidth = screenDimensions.getX();
screenHeight = screenDimensions.getY();
} else {
screenWidth = parent.width;
screenHeight = parent.height;