Fixes #2724: Use capitalized oredict name for dyes, not uppercase.

(cherry picked from commit 2ab0528015)
This commit is contained in:
yueh 2016-12-29 22:50:02 +08:00 committed by xsun2001
parent 4b0f540c8b
commit df57a8f04f

View file

@ -69,6 +69,7 @@ import net.minecraftforge.oredict.OreDictionary;
import java.util.*;
import org.apache.commons.lang3.text.WordUtils;
public class ToolColorApplicator extends AEBasePoweredItem implements IStorageCell, IItemGroup, IBlockTool, IMouseWheelItem
{
@ -78,14 +79,13 @@ public class ToolColorApplicator extends AEBasePoweredItem implements IStorageCe
static
{
for( final AEColor col : AEColor.values() )
for( final AEColor color : AEColor.values() )
{
if( col == AEColor.Transparent )
{
continue;
}
final String dyeName = color.dye.getUnlocalizedName();
final String oreDictName = "dye" + WordUtils.capitalize( dyeName );
final int oreDictId = OreDictionary.getOreID( oreDictName );
ORE_TO_COLOR.put( OreDictionary.getOreID( "dye" + col.name() ), col );
ORE_TO_COLOR.put( oreDictId, color );
}
}