From c9755066b4fb9bcba1c0563d219a79bec56434af Mon Sep 17 00:00:00 2001 From: mani1232 Date: Sun, 25 Sep 2022 21:59:47 +0200 Subject: [PATCH] I think it's time to update modelengine to R3.0.0 --- eco-core/core-plugin/build.gradle | 2 +- .../com/willfp/ecopets/pets/entity/ModelEnginePetEntity.kt | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/eco-core/core-plugin/build.gradle b/eco-core/core-plugin/build.gradle index 294a270..22ea230 100644 --- a/eco-core/core-plugin/build.gradle +++ b/eco-core/core-plugin/build.gradle @@ -7,7 +7,7 @@ dependencies { compileOnly 'net.kyori:adventure-api:4.10.1' compileOnly 'net.essentialsx:EssentialsX:2.19.0' compileOnly 'com.github.ben-manes.caffeine:caffeine:3.0.6' - compileOnly 'com.ticxo.modelengine:api:R2.5.0' + compileOnly 'com.ticxo.modelengine:api:R3.0.0' } build.dependsOn publishToMavenLocal diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecopets/pets/entity/ModelEnginePetEntity.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecopets/pets/entity/ModelEnginePetEntity.kt index f565b92..133074c 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecopets/pets/entity/ModelEnginePetEntity.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecopets/pets/entity/ModelEnginePetEntity.kt @@ -14,10 +14,7 @@ class ModelEnginePetEntity( val model = ModelEngineAPI.createActiveModel(modelID) val modelled = ModelEngineAPI.createModeledEntity(stand) - modelled.addActiveModel(model) - - // ModelEngine removed addActiveModel in new API release... for no reason. - //modelled.addModel(model,true) + modelled.addModel(model, true) return stand }