Removed "Null returned as hitResult" error message from log
This commit is contained in:
@@ -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()) {
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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();
|
||||
*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user