From 7b6d65ce853c166c8d112d96190b37ac1719f809 Mon Sep 17 00:00:00 2001 From: LexManos Date: Tue, 27 Nov 2012 14:53:43 -0800 Subject: [PATCH] Small tweak to config to use Treemap --- common/net/minecraftforge/common/ConfigCategory.java | 4 ++-- common/net/minecraftforge/common/Configuration.java | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/common/net/minecraftforge/common/ConfigCategory.java b/common/net/minecraftforge/common/ConfigCategory.java index 0e4ab437cd..38d1af99a3 100644 --- a/common/net/minecraftforge/common/ConfigCategory.java +++ b/common/net/minecraftforge/common/ConfigCategory.java @@ -4,9 +4,9 @@ import java.io.BufferedWriter; import java.io.IOException; import java.util.ArrayList; import java.util.Collection; -import java.util.HashMap; import java.util.Map; import java.util.Set; +import java.util.TreeMap; import com.google.common.base.Splitter; @@ -17,7 +17,7 @@ public class ConfigCategory implements Map private String name; private String comment; private ArrayList children = new ArrayList(); - private Map properties = new HashMap(); + private Map properties = new TreeMap(); public final ConfigCategory parent; public ConfigCategory(String name) diff --git a/common/net/minecraftforge/common/Configuration.java b/common/net/minecraftforge/common/Configuration.java index d5d37033fd..f252b1ce74 100644 --- a/common/net/minecraftforge/common/Configuration.java +++ b/common/net/minecraftforge/common/Configuration.java @@ -113,6 +113,11 @@ public class Configuration * biomes. * EXA: ExtraBiomesXL * + * Specifically, if your block is used BEFORE the Chunk is created, and placed in the terrain byte array directly. + * If you add a new biome and you set the top/filler block, they need to be <256, nothing else. + * + * If you're adding a new ore, DON'T call this function. + * * Normal mods such as '50 new ores' do not need to be below 256 so should use the normal getBlock */ public Property getTerrainBlock(String category, String key, int defaultID, String comment)