Remove Meta values from Config.
Fixed a number of rendering gltiches with Smart/Covered Cables
This commit is contained in:
@@ -10,7 +10,7 @@ import appeng.api.util.AEColoredItemDefinition;
|
||||
import appeng.core.AppEng;
|
||||
import appeng.items.materials.MaterialType;
|
||||
import appeng.items.misc.ItemCrystalSeed;
|
||||
import appeng.items.parts.ItemPart;
|
||||
import appeng.items.parts.ItemMultiPart;
|
||||
import appeng.items.parts.PartType;
|
||||
|
||||
public class AEItemResolver implements ISubItemResolver
|
||||
@@ -88,7 +88,7 @@ public class AEItemResolver implements ISubItemResolver
|
||||
String partName = itemName.substring( itemName.indexOf( "." ) + 1 );
|
||||
PartType pt = PartType.valueOf( partName );
|
||||
itemName = itemName.substring( 0, itemName.indexOf( "." ) );
|
||||
int dVal = ItemPart.instance.getDamageByType( pt );
|
||||
int dVal = ItemMultiPart.instance.getDamageByType( pt );
|
||||
if ( dVal >= 0 )
|
||||
return new ResolverResult( itemName, dVal );
|
||||
}
|
||||
|
||||
@@ -25,9 +25,9 @@ import appeng.core.AEConfig;
|
||||
import appeng.core.AELog;
|
||||
import appeng.core.AppEng;
|
||||
import appeng.core.features.AEFeature;
|
||||
import appeng.items.materials.ItemMaterial;
|
||||
import appeng.items.materials.ItemMultiMaterial;
|
||||
import appeng.items.misc.ItemCrystalSeed;
|
||||
import appeng.items.parts.ItemPart;
|
||||
import appeng.items.parts.ItemMultiPart;
|
||||
import appeng.recipes.handlers.IWebsiteSeralizer;
|
||||
import appeng.recipes.handlers.OreRegistration;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
@@ -245,10 +245,10 @@ public class RecipeHandler implements IRecipeHandler
|
||||
default:
|
||||
}
|
||||
}
|
||||
else if ( is.getItem() instanceof ItemMaterial )
|
||||
realName += "." + ((ItemMaterial) is.getItem()).getTypeByStack( is ).name();
|
||||
else if ( is.getItem() instanceof ItemPart )
|
||||
realName += "." + ((ItemPart) is.getItem()).getTypeByStack( is ).name();
|
||||
else if ( is.getItem() instanceof ItemMultiMaterial )
|
||||
realName += "." + ((ItemMultiMaterial) is.getItem()).getTypeByStack( is ).name();
|
||||
else if ( is.getItem() instanceof ItemMultiPart )
|
||||
realName += "." + ((ItemMultiPart) is.getItem()).getTypeByStack( is ).name();
|
||||
else if ( is.getItemDamage() > 0 )
|
||||
realName += "." + is.getItemDamage();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user