Fix check in getItem() to allow lowest item ID #361

This commit is contained in:
LexManos 2013-01-12 16:30:08 -08:00
parent 2c974a55ac
commit 1155235d92

View file

@ -194,7 +194,7 @@ public class Configuration
FMLLog.warning("Config \"%s\" Category: \"%s\" Key: \"%s\" Default: %d", fileName, category, key, defaultID);
}
if (Item.itemsList[defaultShift] == null && !configMarkers[defaultShift] && defaultShift > Block.blocksList.length)
if (Item.itemsList[defaultShift] == null && !configMarkers[defaultShift] && defaultShift >= Block.blocksList.length)
{
prop.value = Integer.toString(defaultID);
configMarkers[defaultShift] = true;