Fixes #2724: Use capitalized oredict name for dyes, not uppercase.
(cherry picked from commit 2ab0528015
)
This commit is contained in:
parent
4b0f540c8b
commit
df57a8f04f
1 changed files with 6 additions and 6 deletions
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue