diff --git a/annotations/src/main/java/mindustry/annotations/entity/EntityProcess.java b/annotations/src/main/java/mindustry/annotations/entity/EntityProcess.java index 34a9f5c67e..4dafe96239 100644 --- a/annotations/src/main/java/mindustry/annotations/entity/EntityProcess.java +++ b/annotations/src/main/java/mindustry/annotations/entity/EntityProcess.java @@ -163,7 +163,7 @@ public class EntityProcess extends BaseProcessor{ //SPECIAL CASE: components with EntityDefs don't get a base class! the generated class becomes the base class itself if(component.annotation(Component.class).base()){ - Seq deps = depends.copy().and(component); + Seq deps = depends.copy().add(component); baseClassDeps.get(component, ObjectSet::new).addAll(deps); //do not generate base classes when the component will generate one itself @@ -822,7 +822,7 @@ public class EntityProcess extends BaseProcessor{ //create mock types of all components for(Stype interf : allInterfaces){ //indirect interfaces to implement methods for - Seq dependencies = interf.allInterfaces().and(interf); + Seq dependencies = interf.allInterfaces().add(interf); Seq methods = dependencies.flatMap(Stype::methods); methods.sortComparing(Object::toString); diff --git a/annotations/src/main/java/mindustry/annotations/util/Stype.java b/annotations/src/main/java/mindustry/annotations/util/Stype.java index 58d08631dd..1b53213733 100644 --- a/annotations/src/main/java/mindustry/annotations/util/Stype.java +++ b/annotations/src/main/java/mindustry/annotations/util/Stype.java @@ -25,7 +25,7 @@ public class Stype extends Selement{ } public Seq allInterfaces(){ - return interfaces().flatMap(s -> s.allInterfaces().and(s)).distinct(); + return interfaces().flatMap(s -> s.allInterfaces().add(s)).distinct(); } public Seq superclasses(){ @@ -33,7 +33,7 @@ public class Stype extends Selement{ } public Seq allSuperclasses(){ - return superclasses().flatMap(s -> s.allSuperclasses().and(s)).distinct(); + return superclasses().flatMap(s -> s.allSuperclasses().add(s)).distinct(); } public Stype superclass(){ diff --git a/tools/build.gradle b/tools/build.gradle index ed57242306..94f24dc180 100644 --- a/tools/build.gradle +++ b/tools/build.gradle @@ -348,7 +348,7 @@ task updateBundles{ StringBuilder result = new StringBuilder() //add everything ordered - for(String key : base.orderedKeys().copy().and(extras.keys().toSeq())){ + for(String key : base.orderedKeys().copy().add(extras.keys().toSeq())){ if(other.get(key) == null) continue result.append(processor.get(key, other.get(key))) diff --git a/tools/src/mindustry/tools/ScriptMainGenerator.java b/tools/src/mindustry/tools/ScriptMainGenerator.java index f112e88cf7..6d8bc9ae87 100644 --- a/tools/src/mindustry/tools/ScriptMainGenerator.java +++ b/tools/src/mindustry/tools/ScriptMainGenerator.java @@ -104,7 +104,7 @@ public class ScriptMainGenerator{ StringBuilder cdef = new StringBuilder(); Seq> mapped = classes.select(c -> Modifier.isPublic(c.getModifiers()) && packages.contains(c.getCanonicalName()::startsWith)) - .and(Block.class); //special case + .add(Block.class); //special case for(Class c : mapped){ cdef.append(" classes.put(\"").append(c.getSimpleName()).append("\", ").append(c.getCanonicalName()).append(".class);\n");