I know how to use methods I made for special occasions that I then don't use them for

This commit is contained in:
Ellpeck 2015-11-02 22:41:13 +01:00
parent fad17a5b17
commit a56c1c32ed

View file

@ -12,6 +12,7 @@ package ellpeck.actuallyadditions.misc.special;
import cpw.mods.fml.common.eventhandler.EventPriority;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import ellpeck.actuallyadditions.util.StringUtil;
import ellpeck.actuallyadditions.util.Util;
import net.minecraft.block.Block;
import net.minecraft.item.Item;
@ -36,7 +37,7 @@ public class SpecialRenderInit{
if(!specialList.isEmpty()){
for(Map.Entry<String, RenderSpecial> entry : specialList.entrySet()){
//Does the player have one of the names from the list?
if(entry.getKey().toLowerCase().equals(event.entityPlayer.getDisplayName().toLowerCase())){
if(StringUtil.equalsToLowerCase(entry.getKey(), event.entityPlayer.getDisplayName())){
//Render the special Item/Block
entry.getValue().render(event.entityPlayer);
break;