mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-02-16 17:44:23 +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.
|
* Creates a new model wrapper to contain the given pony.
|
||||||
*/
|
*/
|
||||||
public static <T extends LivingEntity, M extends IModel> ModelWrapper<T, M> of(ModelKey<?> key) {
|
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();
|
IArmour<?> armor = body.createArmour();
|
||||||
armor.applyMetadata(body.getMetadata());
|
armor.applyMetadata(body.getMetadata());
|
||||||
return new ModelWrapper<>(body, armor);
|
return new ModelWrapper<>(body, armor);
|
||||||
|
|
Loading…
Reference in a new issue