Fixed exception when creating the snout

This commit is contained in:
Sollace 2019-11-26 12:30:57 +02:00
parent 6300e89638
commit c4a8d7fa64

View file

@ -23,9 +23,10 @@ public class PonySnout implements IPart, MsonModel {
private ICapitated<ModelPart> head;
@SuppressWarnings("unchecked")
@Override
public void init(ModelContext context) {
head = context.getContext();
head = (ICapitated<ModelPart>)context.getModel();
mare = context.findByName("mare");
stallion = context.findByName("stallion");
}