Malformed Metadata files don't make the GuiReplayListEntry spam error messages anymore
This commit is contained in:
@@ -80,7 +80,7 @@ public class GuiReplayListEntry implements IGuiListEntry {
|
|||||||
}
|
}
|
||||||
|
|
||||||
mc.getTextureManager().bindTexture(textureResource);
|
mc.getTextureManager().bindTexture(textureResource);
|
||||||
Gui.drawScaledCustomSizeModalRect(x - (int)(slotHeight*(16/9f)) + thumbnailOffset, y, 0, 0, 1280, 720, (int)(slotHeight*(16/9f)), slotHeight, 1280, 720);
|
Gui.drawScaledCustomSizeModalRect(x - (int) (slotHeight * (16 / 9f)) + thumbnailOffset, y, 0, 0, 1280, 720, (int) (slotHeight * (16 / 9f)), slotHeight, 1280, 720);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(online) {
|
if(online) {
|
||||||
@@ -103,7 +103,6 @@ public class GuiReplayListEntry implements IGuiListEntry {
|
|||||||
|
|
||||||
mc.fontRendererObj.drawStringWithShadow(duration, x + thumbnailOffset - 1 - durationWidth,
|
mc.fontRendererObj.drawStringWithShadow(duration, x + thumbnailOffset - 1 - durationWidth,
|
||||||
y + slotHeight - mc.fontRendererObj.FONT_HEIGHT, Color.WHITE.getRGB());
|
y + slotHeight - mc.fontRendererObj.FONT_HEIGHT, Color.WHITE.getRGB());
|
||||||
}
|
|
||||||
|
|
||||||
String serverName = fileInfo.getMetadata().getServerName();
|
String serverName = fileInfo.getMetadata().getServerName();
|
||||||
if(serverName == null) serverName = ChatFormatting.DARK_RED.toString()+I18n.format("replaymod.gui.iphidden");
|
if(serverName == null) serverName = ChatFormatting.DARK_RED.toString()+I18n.format("replaymod.gui.iphidden");
|
||||||
@@ -114,6 +113,7 @@ public class GuiReplayListEntry implements IGuiListEntry {
|
|||||||
int dateWidth = mc.fontRendererObj.getStringWidth(dateRecorded);
|
int dateWidth = mc.fontRendererObj.getStringWidth(dateRecorded);
|
||||||
mc.fontRendererObj.drawStringWithShadow(dateRecorded, x + (online ? listWidth - 9 - dateWidth : 3), y + (online ? 13 : 23), Color.LIGHT_GRAY.getRGB());
|
mc.fontRendererObj.drawStringWithShadow(dateRecorded, x + (online ? listWidth - 9 - dateWidth : 3), y + (online ? 13 : 23), Color.LIGHT_GRAY.getRGB());
|
||||||
|
|
||||||
|
|
||||||
if(online) {
|
if(online) {
|
||||||
String owner = I18n.format("replaymod.gui.center.author", ChatFormatting.GRAY.toString()+ChatFormatting.ITALIC, fileInfo.getOwner());
|
String owner = I18n.format("replaymod.gui.center.author", ChatFormatting.GRAY.toString()+ChatFormatting.ITALIC, fileInfo.getOwner());
|
||||||
|
|
||||||
@@ -133,6 +133,7 @@ public class GuiReplayListEntry implements IGuiListEntry {
|
|||||||
|
|
||||||
mc.fontRendererObj.drawString(thumbsString, x + listWidth - stringWidth - 5, y + slotHeight - mc.fontRendererObj.FONT_HEIGHT, Color.GREEN.getRGB());
|
mc.fontRendererObj.drawString(thumbsString, x + listWidth - stringWidth - 5, y + slotHeight - mc.fontRendererObj.FONT_HEIGHT, Color.GREEN.getRGB());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} catch(Exception e) {
|
} catch(Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user