Skip to content

Commit be30f61

Browse files
committed
v149
1 parent 944a094 commit be30f61

File tree

9 files changed

+20
-20
lines changed

9 files changed

+20
-20
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ custom entity component classes. Offered features:
1313
This project is licensed under [GNU GPL v3](/LICENSE).
1414

1515
## Version Compatibility
16-
| `Mindustry`/`Arc` | `EntityAnno` |
17-
|-------------------|--------------|
18-
| `v146` | `v146.0.11` |
19-
| `v145` | `1.1.2` |
20-
| `v144.3` | `1.0.0` |
16+
| `Mindustry`/`Arc` | `EntityAnno` |
17+
|-------------------|---------------|
18+
| `v147`-`v149` | `v149.0.0` |
19+
| `v146` | `v146.0.11` |
20+
| `v145` | `1.1.2` |
21+
| `v144.3` | `1.0.0` |

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ allprojects{
5959
mavenCentral()
6060
maven("https://oss.sonatype.org/content/repositories/snapshots/")
6161
maven("https://oss.sonatype.org/content/repositories/releases/")
62-
maven("https://raw.githubusercontent.com/Zelaux/MindustryRepo/master/repository")
62+
maven("https://maven.xpdustry.com/mindustry")
6363
maven("https://jitpack.io")
6464
}
6565

entity/src/ent/anno/Annotations.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ private Annotations(){
9595
@Retention(RetentionPolicy.SOURCE)
9696
public @interface Replace{
9797
/** @return The priority of this replacer. */
98-
int value() default 0;
98+
float value() default 0f;
9999
}
100100

101101
/** Whether this method is implemented in compile-time. */
@@ -108,7 +108,7 @@ private Annotations(){
108108
@Retention(RetentionPolicy.SOURCE)
109109
public @interface MethodPriority{
110110
/** @return The priority. */
111-
int value();
111+
float value();
112112
}
113113

114114
/** Appends this {@code add()}/{@code remove()} method before the {@code if([!]added)} check. */

entity/src/ent/anno/proc/EntityProcessor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
public class EntityProcessor extends BaseProcessor{
3535
private static final Seq<MethodSymbol> tmpMethods = new Seq<>();
3636
private static final Seq<Object> tmpArgs = new Seq<>();
37-
private static final Comparator<MethodSymbol> methodSorter = Structs.comps(Structs.comparingInt(m -> {
37+
private static final Comparator<MethodSymbol> methodSorter = Structs.comps(Structs.comparingFloat(m -> {
3838
var priority = anno(m, MethodPriority.class);
3939
return priority == null ? 0 : priority.value();
4040
}), Structs.comparing(BaseProcessor::name));
@@ -497,7 +497,7 @@ protected void process() throws IOException{
497497
if(topReplacer != null && (topReplace = anno(topReplacer, Replace.class)) != null){
498498
setter = null;
499499

500-
int max = topReplace.value();
500+
float max = topReplace.value();
501501
if(topReplacer.getReturnType().getKind() == VOID){
502502
entries.removeAll(m -> {
503503
var rep = anno(m, Replace.class);

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Mindustry classpath version.
2-
mindustryVersion = v146
2+
mindustryVersion = v149
33
# Arc classpath version.
4-
arcVersion = v146
4+
arcVersion = v149
55
# Javapoet classpath version, for class file generation.
66
javapoetVersion = 1.13.0
77
# Kotlin KAPT/JVM version.

gradle/wrapper/gradle-wrapper.jar

181 Bytes
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 4 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)