Skip to content

Commit dc00944

Browse files
committed
v2.2.5: Add support for velocity 3.2.0-SNAPSHOT
#177
1 parent ff1546d commit dc00944

File tree

6 files changed

+15
-15
lines changed

6 files changed

+15
-15
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ We provide some documentation on how to migrate your existing plugin to use the
3131
<dependency>
3232
<groupId>dev.simplix</groupId>
3333
<artifactId>protocolize-api</artifactId>
34-
<version>2.2.4</version>
34+
<version>2.2.5</version>
3535
<scope>provided</scope>
3636
</dependency>
3737
```

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>dev.simplix</groupId>
88
<artifactId>protocolize</artifactId>
9-
<version>2.2.4</version>
9+
<version>2.2.5</version>
1010
<packaging>pom</packaging>
1111

1212
<modules>
@@ -21,7 +21,7 @@
2121

2222
<build.number>unknown</build.number>
2323
<bungeecord.version>1.17-R0.1-SNAPSHOT</bungeecord.version>
24-
<velocity.version>3.1.0</velocity.version>
24+
<velocity.version>3.2.0-SNAPSHOT</velocity.version>
2525
<bytebuddy.version>1.11.13</bytebuddy.version>
2626
<data.version>2.2.4</data.version>
2727
</properties>

protocolize-api/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
<parent>
88
<groupId>dev.simplix</groupId>
99
<artifactId>protocolize</artifactId>
10-
<version>2.2.4</version>
10+
<version>2.2.5</version>
1111
</parent>
1212

1313
<artifactId>protocolize-api</artifactId>
14-
<version>2.2.4</version>
14+
<version>2.2.5</version>
1515

1616
<dependencies>
1717
<dependency>

protocolize-bungeecord/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
<parent>
88
<groupId>dev.simplix</groupId>
99
<artifactId>protocolize</artifactId>
10-
<version>2.2.4</version>
10+
<version>2.2.5</version>
1111
</parent>
1212

1313
<artifactId>protocolize-bungeecord</artifactId>
14-
<version>2.2.4</version>
14+
<version>2.2.5</version>
1515

1616
<dependencies>
1717
<dependency>
@@ -32,7 +32,7 @@
3232
<dependency>
3333
<groupId>dev.simplix</groupId>
3434
<artifactId>protocolize-api</artifactId>
35-
<version>2.2.4</version>
35+
<version>2.2.5</version>
3636
<scope>compile</scope>
3737
</dependency>
3838

protocolize-velocity/pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>dev.simplix</groupId>
99
<artifactId>protocolize</artifactId>
10-
<version>2.2.4</version>
10+
<version>2.2.5</version>
1111
</parent>
1212

1313
<properties>
@@ -17,7 +17,7 @@
1717

1818
<groupId>dev.simplix</groupId>
1919
<artifactId>protocolize-velocity</artifactId>
20-
<version>2.2.4</version>
20+
<version>2.2.5</version>
2121

2222
<dependencies>
2323
<dependency>
@@ -29,7 +29,7 @@
2929
<dependency>
3030
<groupId>com.velocitypowered</groupId>
3131
<artifactId>velocity-proxy</artifactId>
32-
<version>3.0.1</version>
32+
<version>3.2.0-SNAPSHOT</version>
3333
<scope>provided</scope>
3434
</dependency>
3535
<dependency>
@@ -48,7 +48,7 @@
4848
<dependency>
4949
<groupId>dev.simplix</groupId>
5050
<artifactId>protocolize-api</artifactId>
51-
<version>2.2.4</version>
51+
<version>2.2.5</version>
5252
<scope>compile</scope>
5353
</dependency>
5454

protocolize-velocity/src/main/java/dev/simplix/protocolize/velocity/providers/VelocityProtocolRegistrationProvider.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public int packetId(Object packet, Protocol protocol, PacketDirection direction,
158158
if (stateRegistry == null) {
159159
return -1;
160160
}
161-
StateRegistry.PacketRegistry.ProtocolRegistry registry = velocityDirection.getProtocolRegistry(stateRegistry,
161+
StateRegistry.PacketRegistry.ProtocolRegistry registry = stateRegistry.getProtocolRegistry(velocityDirection,
162162
ProtocolVersion.getProtocolVersion(protocolVersion));
163163
return registry.getPacketId((MinecraftPacket) packet);
164164
}
@@ -177,7 +177,7 @@ public Object createPacket(Class<? extends AbstractPacket> clazz, Protocol proto
177177
log.debug("Unable to construct wrapper instance for " + clazz.getName() + ": Unknown protocol: " + protocol.name());
178178
return null;
179179
}
180-
StateRegistry.PacketRegistry.ProtocolRegistry registry = velocityDirection.getProtocolRegistry(stateRegistry,
180+
StateRegistry.PacketRegistry.ProtocolRegistry registry = stateRegistry.getProtocolRegistry(velocityDirection,
181181
ProtocolVersion.getProtocolVersion(protocolVersion));
182182
ProtocolIdMapping protocolIdMapping = mappingProvider.mapping(new RegisteredPacket(direction, clazz), protocolVersion);
183183
if (protocolIdMapping != null) {
@@ -202,7 +202,7 @@ private String examineDirection(ProtocolUtils.Direction direction) {
202202
builder.append(" - ").append(stateRegistry.name()).append(":\n");
203203
for (ProtocolVersion version : ProtocolVersion.SUPPORTED_VERSIONS) {
204204
builder.append(" - ").append("Minecraft ").append(version.getVersionsSupportedBy()).append(":\n");
205-
StateRegistry.PacketRegistry.ProtocolRegistry registry = direction.getProtocolRegistry(stateRegistry, version);
205+
StateRegistry.PacketRegistry.ProtocolRegistry registry = stateRegistry.getProtocolRegistry(direction, version);
206206
Map<Class<? extends MinecraftPacket>, Integer> packetMap = (Map<Class<? extends MinecraftPacket>, Integer>) packetClassToIdField.get(registry);
207207
for (Class<? extends MinecraftPacket> clazz : packetMap.keySet()) {
208208
builder.append(" - ").append(clazz.getName()).append(" id = 0x").append(Integer.toHexString(packetMap.get(clazz))).append("\n");

0 commit comments

Comments
 (0)