Skip to content

Commit

Permalink
cyka blyat
Browse files Browse the repository at this point in the history
  • Loading branch information
nekit508 committed Mar 26, 2024
1 parent 00682e7 commit 2e4e1f4
Show file tree
Hide file tree
Showing 24 changed files with 18 additions and 46 deletions.
6 changes: 4 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@ project.tasks.copyBuildRelease { Task task ->
}

project.tasks.jar { Jar jar ->
jar.archiveFileName = "classes.jar"
jar.archiveFileName.set "classes.jar"

jar.duplicatesStrategy = DuplicatesStrategy.EXCLUDE
jar.duplicatesStrategy DuplicatesStrategy.EXCLUDE
jar.from {
project.configurations.runtimeClasspath.collect { File file ->
file.isDirectory() ? file : zipTree(file)
Expand All @@ -186,6 +186,8 @@ project.tasks.buildRelease { Jar jar ->
project.ext.useandroid ? [project.zipTree(project.tasks.jar.archiveFile.get()), project.zipTree(dexFile)] :
[project.zipTree(project.tasks.jar.archiveFile.get())]
}

jar.destinationDirectory.set project.file("artifacts")
}

// create dex jar
Expand Down
17 changes: 0 additions & 17 deletions core/annotations/src/main/resources/classids.properties

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion core/annotations/src/main/resources/revisions/lord/0.json

This file was deleted.

1 change: 0 additions & 1 deletion core/annotations/src/main/resources/revisions/lord/1.json

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion core/annotations/src/main/resources/revisions/radix/0.json

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion core/annotations/src/main/resources/revisions/smoke/0.json

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Empty file removed core/build.gradle
Empty file.
2 changes: 1 addition & 1 deletion extensions/zelaux-entity-anno-comp/core.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
project.tasks.jar { Jar task ->
project.tasks.compileJava { JavaCompile task ->
task.doFirst {
project.copy { CopySpec spec ->
spec.from project.file("mod.json")
Expand Down
17 changes: 11 additions & 6 deletions src/fos/core/FOSMod.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
import arc.util.*;
import fos.content.*;
import fos.controllers.CapsulesController;
import fos.gen.FosCall;
import fos.gen.FosEntityMapping;
import fos.gen.FOSCall;
import fos.gen.FOSEntityMapping;
import fos.graphics.*;
import fos.net.FOSPackets;
import fos.ui.*;
Expand All @@ -30,10 +30,12 @@
import static arc.Core.settings;
import static mindustry.Vars.headless;

@ModAnnotations.RootDirectoryPath(rootDirectoryPath = "core")
@ModAnnotations.RootDirectoryPath(rootDirectoryPath = "")
@ModAnnotations.AnnotationSettings(
rootPackage = "fos",
modInfoPath = "res/mod.json"
modInfoPath = "res/mod.json",
classPrefix = "FOS",
revisionsPath = "revisions"
)
public class FOSMod extends Mod {
public FOSMod() {
Expand All @@ -42,8 +44,11 @@ public FOSMod() {
Log.level = Log.LogLevel.debug;

FOSPackets.register();
FosCall.registerPackets();
FosEntityMapping.init();
FOSCall.registerPackets();
FOSEntityMapping.init();
EntityMapping.nameMap.keys().toSeq().each(s -> {
EntityMapping.nameMap.put("fos-" + s, EntityMapping.nameMap.get(s));
});

Events.on(EventType.ClientLoadEvent.class, e -> {
clientLoaded();
Expand Down
4 changes: 2 additions & 2 deletions src/fos/type/blocks/units/UpgradeCenter.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import arc.struct.Seq;
import arc.util.*;
import arc.util.io.*;
import fos.gen.FosCall;
import fos.gen.FOSCall;
import fos.gen.LumoniPlayerUnitc;
import fos.net.FOSPackets;
import fos.type.content.WeaponSet;
Expand Down Expand Up @@ -198,7 +198,7 @@ public void buildConfiguration(Table table) {
table.row();
table.button(Icon.units, Styles.clearTogglei, () -> {
if (weaponSet == null || Vars.player == null) return;
FosCall.upgrade(Vars.player, tile());
FOSCall.upgrade(Vars.player, tile());
deselect();
}).visible(() -> fraction() >= 1f);
} else {
Expand Down

0 comments on commit 2e4e1f4

Please sign in to comment.