Turns out Gson allows comments, who knew?

This commit is contained in:
tterrag1098 committed 2015-03-25 22:31:37 -04:00
1 parent b1b1a925d7
commit c757f51069
4 files changed
+6 -6

No files matched your search

@@ -92,7 +92,7 @@ public class PoweredSpawnerConfig {
}
blkList = rootObj.getAsJsonArray("blackList");
if(blkList != null) {
if(blkList != null && blkList.size() > 0) {
blackList.clear();
Log.info("Replacing default Powered Spawner blacklist with user supplied values.");
for (int i = 0; i < blkList.size(); i++) {
@@ -226,7 +226,7 @@ public abstract class GuiContainerBase extends GuiContainer implements ToolTipRe
}
// copied from super with hate
private void drawItemStack(ItemStack stack, int mouseX, int mouseY, String str)
protected void drawItemStack(ItemStack stack, int mouseX, int mouseY, String str)
{
GL11.glTranslatef(0.0F, 0.0F, 32.0F);
this.zLevel = 200.0F;