Remove unnecessary mouse movements
This commit is contained in:
@@ -31,7 +31,6 @@ import net.minecraftforge.common.MinecraftForge;
|
|||||||
import net.minecraftforge.fml.client.FMLClientHandler;
|
import net.minecraftforge.fml.client.FMLClientHandler;
|
||||||
import net.minecraftforge.fml.common.FMLCommonHandler;
|
import net.minecraftforge.fml.common.FMLCommonHandler;
|
||||||
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
|
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
|
||||||
import org.lwjgl.input.Mouse;
|
|
||||||
import org.lwjgl.opengl.Display;
|
import org.lwjgl.opengl.Display;
|
||||||
import org.lwjgl.util.Point;
|
import org.lwjgl.util.Point;
|
||||||
|
|
||||||
@@ -146,11 +145,6 @@ public class GuiReplayOverlay extends Gui {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void tick() {
|
private void tick() {
|
||||||
if (mc.inGameHasFocus) { // TODO Check if this is necessary
|
|
||||||
Point scaled = MouseUtils.getScaledDimensions();
|
|
||||||
Mouse.setCursorPosition(scaled.getX() / 2, scaled.getY() / 2);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (FMLClientHandler.instance().isGUIOpen(GuiMouseInput.class)) {
|
if (FMLClientHandler.instance().isGUIOpen(GuiMouseInput.class)) {
|
||||||
Entity player = ReplayHandler.getCameraEntity();
|
Entity player = ReplayHandler.getCameraEntity();
|
||||||
if(player != null) {
|
if(player != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user