Skip to content

Commit 6813000

Browse files
committed
bugfix(build): Трансформеры задекларированы при билде бинарника
До этого FLM не мог подцепить at-файлы
1 parent 9fd77af commit 6813000

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ subprojects { // TODO: Forge дублируется в зависимостях
4646
archivesBaseName = "weightapi"
4747
apply plugin: 'DepATs'
4848
minecraft { at(DepATs.getDepATs()) } // Включаем трансформеры из зависимостей
49+
jar { manifest { attributes 'FMLAT': 'weightapi_at.cfg' } }
4950
safeClean { exclude += DepATs.getDepATs().name } // Добавляем файл трансформеров-зависимостей в исключение при очистке
5051

5152
dependencies {

examples/case1/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
archivesBaseName = "weightapi-case1"
1+
archivesBaseName = "weightapi-case1"
2+
3+
jar { manifest { attributes 'FMLAT': 'weightapi_example1_at.cfg' } }

examples/case2/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,6 @@ repositories {
88

99
dependencies {
1010
compile 'ru.rarescrap.configurableweight:configurableweight:0.5.0_1.7.10:dev'
11-
}
11+
}
12+
13+
jar { manifest { attributes 'FMLAT': 'weightapi_example2_at.cfg' } }
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# У следующих полей модификатор доступа изменится на public
2+
public net.minecraft.inventory.Container field_75149_d # crafters

0 commit comments

Comments
 (0)