Fixed AIOOB issue with new sanity check in getBlock

This commit is contained in:
LexManos 2012-11-27 12:24:52 -08:00
parent 50426ea0fe
commit 530c19293b
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ public class Configuration
"mod authors should make sure there defaults are above 256 unless explicitly needed " +
"for terrain generation. Most ores do not need to be below 256.");
FMLLog.warning("Config \"%s\" Category: \"%s\" Key: \"%s\" Default: %d", fileName, category, key, defaultID);
defaultID = upper;
defaultID = upper - 1;
}
if (Block.blocksList[defaultID] == null && !configMarkers[defaultID])