Update SubData

This commit is contained in:
ME1312 2021-10-25 01:12:06 -04:00
parent 92151d75d0
commit c137906fcd
No known key found for this signature in database
GPG Key ID: FEFFE2F698E88FA8
6 changed files with 13 additions and 17 deletions

View File

@ -28,7 +28,7 @@
<dependency> <dependency>
<groupId>net.ME1312.Galaxi</groupId> <groupId>net.ME1312.Galaxi</groupId>
<artifactId>GalaxiUtil</artifactId> <artifactId>GalaxiUtil</artifactId>
<version>21w44b</version> <version>21w44c</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
</dependencies> </dependencies>

View File

@ -34,7 +34,7 @@
<dependency> <dependency>
<groupId>net.ME1312.SubData</groupId> <groupId>net.ME1312.SubData</groupId>
<artifactId>Server</artifactId> <artifactId>Server</artifactId>
<version>21w44a</version> <version>21w44b</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
<dependency> <dependency>

View File

@ -52,7 +52,7 @@ public class PacketExAddServer implements PacketObjectIn<Integer>, PacketObjectO
@Override @Override
public ObjectMap<Integer> send(SubDataClient client) { public ObjectMap<Integer> send(SubDataClient client) {
ObjectMap<Integer> data = new ObjectMap<Integer>(); ObjectMap<Integer> data = new ObjectMap<Integer>();
if (tracker != null) data.set(0x0000, tracker); data.set(0x0000, tracker);
data.set(0x0001, name); data.set(0x0001, name);
data.set(0x0002, enabled); data.set(0x0002, enabled);
data.set(0x0003, port); data.set(0x0003, port);

View File

@ -44,16 +44,12 @@ public class PacketExDeleteServer implements PacketObjectIn<Integer>, PacketObje
@Override @Override
public ObjectMap<Integer> send(SubDataClient client) { public ObjectMap<Integer> send(SubDataClient client) {
if (tracker == null) { ObjectMap<Integer> data = new ObjectMap<Integer>();
return null; data.set(0x0000, tracker);
} else { data.set(0x0001, name);
ObjectMap<Integer> data = new ObjectMap<Integer>(); data.set(0x0002, info);
data.set(0x0000, tracker); if (recycle) data.set(0x0003, true);
data.set(0x0001, name); return data;
data.set(0x0002, info);
if (recycle) data.set(0x0003, true);
return data;
}
} }
@Override @Override

View File

@ -18,13 +18,13 @@
<dependency> <dependency>
<groupId>net.ME1312.Galaxi</groupId> <groupId>net.ME1312.Galaxi</groupId>
<artifactId>GalaxiUtil</artifactId> <artifactId>GalaxiUtil</artifactId>
<version>21w44b</version> <version>21w44c</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>net.ME1312.SubData</groupId> <groupId>net.ME1312.SubData</groupId>
<artifactId>Client</artifactId> <artifactId>Client</artifactId>
<version>21w44a</version> <version>21w44b</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
</dependencies> </dependencies>

View File

@ -30,13 +30,13 @@
<dependency> <dependency>
<groupId>net.ME1312.Galaxi</groupId> <groupId>net.ME1312.Galaxi</groupId>
<artifactId>GalaxiEngine</artifactId> <artifactId>GalaxiEngine</artifactId>
<version>21w44b</version> <version>21w44c</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>net.ME1312.Galaxi</groupId> <groupId>net.ME1312.Galaxi</groupId>
<artifactId>GalaxiUI</artifactId> <artifactId>GalaxiUI</artifactId>
<version>21w44b</version> <version>21w44c</version>
<scope>runtime</scope> <scope>runtime</scope>
</dependency> </dependency>
<dependency> <dependency>