From 5d3371ab3bc4418fdb8a11b268252b093edf8319 Mon Sep 17 00:00:00 2001 From: LexManos Date: Tue, 25 Sep 2012 05:04:56 -0700 Subject: [PATCH] Fix Configuration.getItem to return pre-shifted values suitible to pass into Item constructors. --- 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 0e1f532a6..c8dddf977 100644 --- a/common/net/minecraftforge/common/Configuration.java +++ b/common/net/minecraftforge/common/Configuration.java @@ -152,7 +152,7 @@ public class Configuration { if (Item.itemsList[x] == null && !configItems[x]) { - prop.value = Integer.toString(x); + prop.value = Integer.toString(x - ITEM_SHIFT); configItems[x] = true; return prop; }