Update preprocessor
- Switch from ECJ to IDEA (with potential for kotlin) - Can pull SRG mappings from FG, reducing amount of manual mappings (basically just class mappings and fixing errors in SRG mappings)
This commit is contained in:
@@ -608,9 +608,6 @@ public class MCVer {
|
||||
//#endif
|
||||
|
||||
//#if MC>=11300
|
||||
public static void color(float r, float g, float b, float a) { GlStateManager.color4f(r, g, b, a); }
|
||||
public static void enableAlpha() { GlStateManager.enableAlphaTest(); }
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
public static abstract class Keyboard {
|
||||
public static final int KEY_LCONTROL = GLFW.GLFW_KEY_LEFT_CONTROL;
|
||||
|
||||
@@ -21,10 +21,7 @@ import de.johni0702.minecraft.gui.versions.callbacks.PostRenderHudCallback;
|
||||
import static com.replaymod.core.ReplayMod.TEXTURE;
|
||||
import static com.replaymod.core.ReplayMod.TEXTURE_SIZE;
|
||||
import static com.replaymod.core.versions.MCVer.*;
|
||||
|
||||
//#if MC<11300
|
||||
//$$ import static net.minecraft.client.renderer.GlStateManager.*;
|
||||
//#endif
|
||||
import static com.mojang.blaze3d.platform.GlStateManager.*;
|
||||
|
||||
/**
|
||||
* Renders overlay during recording.
|
||||
@@ -57,7 +54,7 @@ public class GuiRecordingOverlay extends EventRegistrations {
|
||||
String text = guiControls.isPaused() ? I18n.translate("replaymod.gui.paused") : I18n.translate("replaymod.gui.recording");
|
||||
fontRenderer.draw(text.toUpperCase(), 30, 18 - (fontRenderer.fontHeight / 2), 0xffffffff);
|
||||
bindTexture(TEXTURE);
|
||||
enableAlpha();
|
||||
enableAlphaTest();
|
||||
GuiRenderer renderer = new MinecraftGuiRenderer(MCVer.newScaledResolution(mc));
|
||||
renderer.drawTexturedRect(10, 10, 58, 20, 16, 16, 16, 16, TEXTURE_SIZE, TEXTURE_SIZE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user