Fix arrows

This commit is contained in:
Matthew Messinger 2016-04-08 21:39:52 -04:00
parent 2a99758a57
commit 08728bc5c7

View file

@ -5,6 +5,7 @@ import static net.minecraft.client.renderer.GlStateManager.scale;
import static net.minecraft.client.renderer.GlStateManager.translate;
import java.util.List;
import java.util.Random;
import com.brohoof.minelittlepony.PonyData;
import com.brohoof.minelittlepony.PonySize;
@ -326,4 +327,15 @@ public abstract class AbstractPonyModel extends ModelPlayer {
this.isSleeping = pony.isSleeping;
}
}
@Override
public ModelRenderer getRandomModelBox(Random rand) {
// empty lists cause problems
ModelRenderer mr = null;
do {
// try until it's not
mr = super.getRandomModelBox(rand);
} while (mr.cubeList.isEmpty());
return mr;
}
}