Deploy the Cumulus changes for Geyser so Floodgate can use them

This commit is contained in:
Tim203 2022-01-26 12:10:15 +01:00
parent 3011d89db6
commit 53de9f4a31
No known key found for this signature in database
GPG key ID: 064EE9F5BF7C3EE8
15 changed files with 26 additions and 25 deletions

View file

@ -6,7 +6,7 @@
<parent>
<groupId>org.geysermc</groupId>
<artifactId>geyser-parent</artifactId>
<version>2.0.0-SNAPSHOT</version>
<version>2.0.1-cumulus-SNAPSHOT</version>
</parent>
<artifactId>core</artifactId>
@ -21,19 +21,19 @@
<dependency>
<groupId>org.geysermc</groupId>
<artifactId>ap</artifactId>
<version>2.0.0-SNAPSHOT</version>
<version>2.0.1-cumulus-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.geysermc</groupId>
<artifactId>geyser-api</artifactId>
<version>2.0.0-SNAPSHOT</version>
<version>2.0.1-cumulus-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.geysermc</groupId>
<artifactId>common</artifactId>
<version>2.0.0-SNAPSHOT</version>
<version>2.0.1-cumulus-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
<!-- Jackson JSON and YAML serialization -->

View file

@ -60,7 +60,7 @@ public class JavaCustomPayloadTranslator extends PacketTranslator<ClientboundCus
// receive: first byte is form type, second and third are the id, remaining is the form data
// respond: first and second byte id, remaining is form response data
FormType type = FormType.getByOrdinal(data[0]);
FormType type = FormType.fromOrdinal(data[0]);
if (type == null) {
throw new NullPointerException(
"Got type " + data[0] + " which isn't a valid form type!");