Removed "Null returned as hitResult" error message from log

This commit is contained in:
CrushedPixel
2015-04-25 17:48:48 +02:00
parent 0003f040ed
commit e22fca0862
5 changed files with 18 additions and 41 deletions

View File

@@ -99,6 +99,14 @@ public class GuiReplayOverlay extends Gui {
}
}
@SubscribeEvent
public void onRenderTabList(RenderGameOverlayEvent.Pre event) { //cancelling tab list rendering and rendering help instead
if(ReplayHandler.isInReplay() && event.type == RenderGameOverlayEvent.ElementType.PLAYER_LIST) {
event.setCanceled(true);
}
}
@SubscribeEvent
public void renderRecordingIndicator(RenderGameOverlayEvent.Text event) {
if(!ReplayHandler.isInReplay() && ReplayMod.replaySettings.showRecordingIndicator() && ConnectionEventHandler.isRecording()) {

View File

@@ -307,39 +307,6 @@ public class MinecraftTicker {
}
}
}
} else {
while(mc.gameSettings.keyBindAttack.isPressed()) {
if(mc != null)
try {
clickMouse.invoke(mc);
} catch(Exception e) {
}
}
while(mc.gameSettings.keyBindUseItem.isPressed()) {
if(mc != null)
try {
rightClickMouse.invoke(mc);
} catch(Exception e) {
}
}
while(mc.gameSettings.keyBindPickBlock.isPressed()) {
if(mc != null)
try {
middleClickMouse.invoke(mc);
} catch(Exception e) {
}
}
}
if(mc.gameSettings.keyBindUseItem.isKeyDown() && (Integer) rightClickDelayTimer.get(mc) == 0 && !mc.thePlayer.isUsingItem()) {
if(mc != null)
try {
rightClickMouse.invoke(mc);
} catch(Exception e) {
}
}
if(mc != null)

View File

@@ -86,18 +86,18 @@ public class TickAndRenderListener {
isGamePaused.set(mc, false);
}
}
@SubscribeEvent
public void tick(TickEvent event) {
if(!ReplayHandler.isInReplay()) return;
/*
if(Keyboard.getEventKeyState() && Keyboard.isKeyDown(Keyboard.KEY_F1)
&& ReplayHandler.isInPath() && !ReplayProcess.isVideoRecording()
if(Keyboard.getEventKeyState() && Keyboard.isKeyDown(Keyboard.KEY_F1)
&& ReplayHandler.isInPath() && !ReplayProcess.isVideoRecording()
&& mc.currentScreen instanceof GuiMouseInput && !f1Down) {
mc.gameSettings.hideGUI = !mc.gameSettings.hideGUI;
}
f1Down = Keyboard.isKeyDown(Keyboard.KEY_F1) && Keyboard.getEventKeyState();
*/