mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-29 07:27:59 +01:00
Fix arrows
This commit is contained in:
parent
2a99758a57
commit
08728bc5c7
1 changed files with 12 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue