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()) {