17w16a support

This commit is contained in:
Myles 2017-04-20 16:23:09 +01:00
parent fe95bbf312
commit a6491cf792
9 changed files with 25 additions and 12 deletions

View File

@ -5,7 +5,7 @@
<parent>
<artifactId>viaversion-parent</artifactId>
<groupId>us.myles</groupId>
<version>1.0.5-17w15a</version>
<version>1.0.5-17w16a</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@ -5,7 +5,7 @@
<parent>
<artifactId>viaversion-parent</artifactId>
<groupId>us.myles</groupId>
<version>1.0.5-17w15a</version>
<version>1.0.5-17w16a</version>
</parent>
<modelVersion>4.0.0</modelVersion>
@ -37,7 +37,7 @@
<dependency>
<groupId>us.myles</groupId>
<artifactId>viaversion-common</artifactId>
<version>1.0.5-17w15a</version>
<version>1.0.5-17w16a</version>
</dependency>
</dependencies>
</project>

View File

@ -5,7 +5,7 @@
<parent>
<artifactId>viaversion-parent</artifactId>
<groupId>us.myles</groupId>
<version>1.0.5-17w15a</version>
<version>1.0.5-17w16a</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@ -55,7 +55,7 @@ public class ProtocolVersion {
register(v1_10 = new ProtocolVersion(210, "1.10"));
register(v1_11 = new ProtocolVersion(315, "1.11"));
register(v1_11_1 = new ProtocolVersion(316, "1.11.1"));
register(snapshot = new ProtocolVersion(321, "17w15a"));
register(snapshot = new ProtocolVersion(322, "17w16a"));
register(unknown = new ProtocolVersion(-1, "UNKNOWN"));
}

View File

@ -12,7 +12,7 @@ public class ProtocolSnapshotTo1_11_1 extends Protocol {
@Override
protected void registerPackets() {
// As of 17w15a
// As of 17w16a
// Outgoing
// New packet at 0x08
@ -173,9 +173,22 @@ public class ProtocolSnapshotTo1_11_1 extends Protocol {
private int getNewSoundId(int id) { //TODO Make it better, suggestions are welcome. It's ugly and hardcoded now.
int newId = id;
if (id >= 301) // Hello shulker boxes
if (id >= 26) // End Portal Sounds
newId += 2;
if (id >= 70) // New Block Notes
newId += 4;
if (id >= 74) // New Block Note 2
newId += 1;
if (id >= 143) // Boat Sounds
newId += 3;
if (id >= 185) // Endereye death
newId += 1;
if (id >= 263) // Illagers
newId += 3;
if (id >= 301) // Parrots
newId += 6;
if (id >= 317) // Player Sounds
newId += 2;
return newId;
}

View File

@ -5,7 +5,7 @@
<parent>
<artifactId>viaversion-parent</artifactId>
<groupId>us.myles</groupId>
<version>1.0.5-17w15a</version>
<version>1.0.5-17w16a</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<name>viaversion-jar</name>

View File

@ -6,7 +6,7 @@
<groupId>us.myles</groupId>
<artifactId>viaversion-parent</artifactId>
<version>1.0.5-17w15a</version>
<version>1.0.5-17w16a</version>
<packaging>pom</packaging>
<name>viaversion-parent</name>

View File

@ -5,7 +5,7 @@
<parent>
<artifactId>viaversion-parent</artifactId>
<groupId>us.myles</groupId>
<version>1.0.5-17w15a</version>
<version>1.0.5-17w16a</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@ -5,7 +5,7 @@
<parent>
<artifactId>viaversion-parent</artifactId>
<groupId>us.myles</groupId>
<version>1.0.5-17w15a</version>
<version>1.0.5-17w16a</version>
</parent>
<modelVersion>4.0.0</modelVersion>