Fix butterfly model

This commit is contained in:
Nedelosk committed 2016-05-06 00:32:52 +02:00
1 parent 078290649c
commit 6b5750f252
1 file changed
+3 -2
@@ -25,8 +25,9 @@ import net.minecraft.entity.EntityLivingBase;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ResourceLocation;
import net.minecraft.world.World;
import net.minecraftforge.client.model.IModel;
import net.minecraftforge.client.model.IRetexturableModel;
import net.minecraftforge.client.model.ModelLoader;
import net.minecraftforge.client.model.ModelLoaderRegistry;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
@@ -72,7 +73,7 @@ public class ModelButterflyItem extends BlankItemModel {
public IBakedModel handleItemState(IBakedModel originalModel, ItemStack stack, World world, EntityLivingBase entity) {
if (modelButterfly == null) {
try {
modelButterfly = (IRetexturableModel) ModelLoaderRegistry.getModel(new ModelResourceLocation("forestry:butterflyGE", "inventory"));
modelButterfly = (IRetexturableModel) ModelLoaderRegistry.getModel(new ResourceLocation("forestry:item/butterflyGE"));
} catch (Exception e) {
return null;
}