mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-22 12:37:59 +01:00
Fix build
This commit is contained in:
parent
94b76b1402
commit
2f6ded25b6
1 changed files with 2 additions and 1 deletions
|
@ -19,7 +19,8 @@ public record ModelWrapper<T extends LivingEntity, M extends IModel> (
|
|||
* Creates a new model wrapper to contain the given pony.
|
||||
*/
|
||||
public static <T extends LivingEntity, M extends IModel> ModelWrapper<T, M> of(ModelKey<?> key) {
|
||||
M body = key.createModel();
|
||||
@SuppressWarnings("unchecked")
|
||||
M body = (M)key.createModel();
|
||||
IArmour<?> armor = body.createArmour();
|
||||
armor.applyMetadata(body.getMetadata());
|
||||
return new ModelWrapper<>(body, armor);
|
||||
|
|
Loading…
Reference in a new issue