Replace no name tag CT with mixin magic

Fix nametags of sneaking players being displayed even though nametags are disabled
This commit is contained in:
johni0702
2015-08-05 17:09:54 +02:00
parent 16a86066f2
commit 78e4c36d54
7 changed files with 47 additions and 70 deletions

View File

@@ -1,6 +1,5 @@
package eu.crushedpixel.replaymod.video;
import eu.crushedpixel.replaymod.coremod.asm_Hooks;
import eu.crushedpixel.replaymod.settings.RenderOptions;
import eu.crushedpixel.replaymod.video.capturer.CaptureData;
import eu.crushedpixel.replaymod.video.capturer.WorldRenderer;
@@ -24,10 +23,6 @@ public class EntityRendererHandler implements WorldRenderer {
public EntityRendererHandler(RenderOptions options) {
this.options = options;
if (options.isHideNameTags()) {
asm_Hooks.DO_NOT_RENDER_NAME_TAGS = true;
}
((IEntityRenderer) mc.entityRenderer).setHandler(this);
}
@@ -67,8 +62,6 @@ public class EntityRendererHandler implements WorldRenderer {
@Override
public void close() throws IOException {
((IEntityRenderer) mc.entityRenderer).setHandler(null);
asm_Hooks.DO_NOT_RENDER_NAME_TAGS = false;
}
public static final class NoCullingClippingHelper extends ClippingHelper {