Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- IModel parent = ModelLoaderRegistry.getModelOrLogError(model.getParentLocation(), "Could not load vanilla model parent '" + model.getParentLocation() + "' for '" + model);
- if(parent instanceof VanillaModelWrapper)
- {
- model.parent = ((VanillaModelWrapper) parent).model;
- }
- else
- {
- throw new IllegalStateException("vanilla model '" + model + "' can't have non-vanilla parent");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement