mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-29 23:48:00 +01:00
Pass through the original type to mods (reported by Poly)
This commit is contained in:
parent
83c2550506
commit
032ce5f651
1 changed files with 4 additions and 3 deletions
|
@ -8,6 +8,7 @@ import net.minecraft.item.ItemArmor;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.util.ResourceLocation;
|
import net.minecraft.util.ResourceLocation;
|
||||||
|
|
||||||
|
import com.google.common.base.Strings;
|
||||||
import com.google.common.collect.Maps;
|
import com.google.common.collect.Maps;
|
||||||
import com.minelittlepony.ForgeProxy;
|
import com.minelittlepony.ForgeProxy;
|
||||||
import com.minelittlepony.model.armour.IEquestrianArmor.ArmorLayer;
|
import com.minelittlepony.model.armour.IEquestrianArmor.ArmorLayer;
|
||||||
|
@ -35,10 +36,10 @@ public class DefaultPonyArmorTextureResolver<T extends EntityLivingBase> impleme
|
||||||
texture = texture.substring(idx + 1);
|
texture = texture.substring(idx + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
type = type == null ? "" : String.format("_%s", type);
|
String customType = type == null ? "" : String.format("_%s", type);
|
||||||
|
|
||||||
String ponyRes = String.format("%s:textures/models/armor/%s_layer_%s%s.png", domain, texture, layer.name().toLowerCase(), type);
|
String ponyRes = String.format("%s:textures/models/armor/%s_layer_%s%s.png", domain, texture, layer.name().toLowerCase(), customType);
|
||||||
String oldPonyRes = String.format("%s:textures/models/armor/%s_layer_%d%s.png", domain, texture, layer == ArmorLayer.INNER ? 2 : 1, type);
|
String oldPonyRes = String.format("%s:textures/models/armor/%s_layer_%d%s.png", domain, texture, layer == ArmorLayer.INNER ? 2 : 1, customType);
|
||||||
|
|
||||||
ResourceLocation human = getArmorTexture(entity, itemstack, ponyRes, slot, type);
|
ResourceLocation human = getArmorTexture(entity, itemstack, ponyRes, slot, type);
|
||||||
ResourceLocation pony = ponifyResource(human);
|
ResourceLocation pony = ponifyResource(human);
|
||||||
|
|
Loading…
Reference in a new issue