Skip to content

Commit

Permalink
Fix copyAnimations build task
Browse files Browse the repository at this point in the history
  • Loading branch information
lab3 committed Dec 12, 2024
1 parent c8e7c58 commit 95ebc24
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,8 @@ tasks.withType(JavaCompile).configureEach {
}

tasks.register('copyAnimations', Copy) {
from "src/main/resources/assets/${mod_id}/player_animation"
include 'casting_animations.json'
into "src/main/resources/assets/${mod_id}/animations"
from layout.projectDirectory.file("src/main/resources/assets/${mod_id}/player_animations/casting_animations.json")
into layout.projectDirectory.dir("src/main/resources/assets/${mod_id}/animations")
}

tasks.classes.dependsOn(tasks.copyAnimations)
Expand Down

0 comments on commit 95ebc24

Please sign in to comment.