Advertisement
Guest User

Untitled

a guest
Aug 24th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. IModel parent = ModelLoaderRegistry.getModelOrLogError(model.getParentLocation(), "Could not load vanilla model parent '" + model.getParentLocation() + "' for '" + model);
  2. if(parent instanceof VanillaModelWrapper)
  3. {
  4. model.parent = ((VanillaModelWrapper) parent).model;
  5. }
  6. else
  7. {
  8. throw new IllegalStateException("vanilla model '" + model + "' can't have non-vanilla parent");
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement