Hey everyone,
first of all I know a lot of people will be complaining that 1.7 is ancient, but I cant update until mods I depent on do.
I got an GUIOverlay that is supposed to render text to the screen. It works fince in 1.10 (with some minor adjustments to the newer version) but in 1.7 there is no text showing, and I have no idea why.
The code is getting called, I see my sysout on the console
@SubscribeEvent
public void onRenderExperienceBar(RenderGameOverlayEvent event) {
if(holder==null) holder = QuestHolder.get();
if(event.isCancelable() && (event.type==ElementType.ALL)) {
mc.getTextureManager().bindTexture(texture);
ScaledResolution sr = new ScaledResolution(mc, mc.displayWidth, mc.displayHeight);
int i=0;
int height = 30;
mc.fontRenderer.drawStringWithShadow("Test", sr.getScaledWidth()/2, sr.getScaledHeight()/2, 0xFFFFFF);
for (Quest quest : holder.getQuests()) {
System.out.println(holder.getQuests().size());
if(!quest.isFollowed()) {
mc.fontRenderer.drawString(quest.getName(), 100, height, WHITE);
for(Condition condition:quest.getConditions()) {
i+=1;
mc.fontRenderer.drawString(condition.getDescription(), 30, height+10*i, condition.isFinished()? GREEN: RED);
}
i=0;
height+=50;
}
}
}
}