From 530c19293b07e0c696910e6a4990bec9e028e82b Mon Sep 17 00:00:00 2001 From: LexManos Date: Tue, 27 Nov 2012 12:24:52 -0800 Subject: [PATCH] Fixed AIOOB issue with new sanity check in getBlock --- common/net/minecraftforge/common/Configuration.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/net/minecraftforge/common/Configuration.java b/common/net/minecraftforge/common/Configuration.java index 9cfb3cae5d..d5d37033fd 100644 --- a/common/net/minecraftforge/common/Configuration.java +++ b/common/net/minecraftforge/common/Configuration.java @@ -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])