Only render overlay gui once

Fix incorrect texture location of recording-marker
This commit is contained in:
johni0702
2015-05-26 21:43:43 +02:00
parent 7eb24e19bc
commit 395c3b0acd
2 changed files with 7 additions and 2 deletions

View File

@@ -310,6 +310,7 @@ public class GuiReplayOverlay extends Gui {
@SubscribeEvent
public void onRenderGui(RenderGameOverlayEvent.Post event) throws IllegalArgumentException, IllegalAccessException {
if (event.type != RenderGameOverlayEvent.ElementType.ALL) return;
if (!isVisible()) return;
FMLClientHandler fml = FMLClientHandler.instance();