Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-26 00:00:28 +01:00
19w13a
Dieser Commit ist enthalten in:
Ursprung
4ca25df410
Commit
65f60098c8
@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>viaversion-parent</artifactId>
|
<artifactId>viaversion-parent</artifactId>
|
||||||
<groupId>us.myles</groupId>
|
<groupId>us.myles</groupId>
|
||||||
<version>2.0.0-19w12b</version>
|
<version>2.0.0-19w13a</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>viaversion-parent</artifactId>
|
<artifactId>viaversion-parent</artifactId>
|
||||||
<groupId>us.myles</groupId>
|
<groupId>us.myles</groupId>
|
||||||
<version>2.0.0-19w12b</version>
|
<version>2.0.0-19w13a</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>viaversion-parent</artifactId>
|
<artifactId>viaversion-parent</artifactId>
|
||||||
<groupId>us.myles</groupId>
|
<groupId>us.myles</groupId>
|
||||||
<version>2.0.0-19w12b</version>
|
<version>2.0.0-19w13a</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
@ -67,7 +67,7 @@ public class ProtocolVersion {
|
|||||||
register(v1_13 = new ProtocolVersion(393, "1.13"));
|
register(v1_13 = new ProtocolVersion(393, "1.13"));
|
||||||
register(v1_13_1 = new ProtocolVersion(401, "1.13.1"));
|
register(v1_13_1 = new ProtocolVersion(401, "1.13.1"));
|
||||||
register(v1_13_2 = new ProtocolVersion(404, "1.13.2"));
|
register(v1_13_2 = new ProtocolVersion(404, "1.13.2"));
|
||||||
register(v1_14 = new ProtocolVersion(467, "1.14"));
|
register(v1_14 = new ProtocolVersion(468, "1.14"));
|
||||||
register(unknown = new ProtocolVersion(-1, "UNKNOWN"));
|
register(unknown = new ProtocolVersion(-1, "UNKNOWN"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -120,6 +120,13 @@ public class MetadataRewriter {
|
|||||||
metadatas.remove(metadata); // TODO "Has target (aggressive state)", maybe moved to pos / entity status
|
metadatas.remove(metadata); // TODO "Has target (aggressive state)", maybe moved to pos / entity status
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO Are witch and ravager also abstract illagers? They all inherit the new metadata 14 added in 19w13a
|
||||||
|
if (type.is(Entity1_14Types.EntityType.WITCH) || type.is(Entity1_14Types.EntityType.RAVAGER) || type.isOrHasParent(Entity1_14Types.EntityType.ABSTRACT_ILLAGER_BASE)) {
|
||||||
|
if (metadata.getId() >= 14) { // TODO 19w13 added a new boolean with id 14
|
||||||
|
metadata.setId(metadata.getId() + 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
metadatas.remove(metadata);
|
metadatas.remove(metadata);
|
||||||
if (!Via.getConfig().isSuppressMetadataErrors() || Via.getManager().isDebug()) {
|
if (!Via.getConfig().isSuppressMetadataErrors() || Via.getManager().isDebug()) {
|
||||||
|
@ -177,7 +177,7 @@ public class Protocol1_14To1_13_2 extends Protocol {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
registerIncoming(State.PLAY, -1, 0x02); //Unknown packet added in 19w11a
|
registerIncoming(State.PLAY, -1, 0x02); //Set Difficulty packet added in 19w11a
|
||||||
registerIncoming(State.PLAY, 0x02, 0x03);
|
registerIncoming(State.PLAY, 0x02, 0x03);
|
||||||
registerIncoming(State.PLAY, 0x03, 0x04);
|
registerIncoming(State.PLAY, 0x03, 0x04);
|
||||||
registerIncoming(State.PLAY, 0x04, 0x05);
|
registerIncoming(State.PLAY, 0x04, 0x05);
|
||||||
@ -190,7 +190,7 @@ public class Protocol1_14To1_13_2 extends Protocol {
|
|||||||
|
|
||||||
registerIncoming(State.PLAY, 0x0C, 0x0D);
|
registerIncoming(State.PLAY, 0x0C, 0x0D);
|
||||||
registerIncoming(State.PLAY, 0x0D, 0x0E);
|
registerIncoming(State.PLAY, 0x0D, 0x0E);
|
||||||
registerIncoming(State.PLAY, -1, 0x0F); //Unknown packet added in 19w11a
|
registerIncoming(State.PLAY, -1, 0x0F); //Lock Difficulty packet added in 19w11a
|
||||||
registerIncoming(State.PLAY, 0x0E, 0x10);
|
registerIncoming(State.PLAY, 0x0E, 0x10);
|
||||||
registerIncoming(State.PLAY, 0x0F, 0x11);
|
registerIncoming(State.PLAY, 0x0F, 0x11);
|
||||||
registerIncoming(State.PLAY, 0x10, 0x12);
|
registerIncoming(State.PLAY, 0x10, 0x12);
|
||||||
@ -214,10 +214,12 @@ public class Protocol1_14To1_13_2 extends Protocol {
|
|||||||
|
|
||||||
registerIncoming(State.PLAY, 0x23, 0x25);
|
registerIncoming(State.PLAY, 0x23, 0x25);
|
||||||
|
|
||||||
registerIncoming(State.PLAY, 0x27, 0x29);
|
registerIncoming(State.PLAY, -1, 0x27); //Unknown packet added in 19w13a
|
||||||
registerIncoming(State.PLAY, 0x28, 0x2A);
|
|
||||||
|
|
||||||
registerIncoming(State.PLAY, 0x2A, 0x2C);
|
registerIncoming(State.PLAY, 0x27, 0x2A);
|
||||||
|
registerIncoming(State.PLAY, 0x28, 0x2B);
|
||||||
|
|
||||||
|
registerIncoming(State.PLAY, 0x2A, 0x2D);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static int getNewSoundId(int id) {
|
public static int getNewSoundId(int id) {
|
||||||
|
@ -18,7 +18,7 @@ public class PlayerPackets {
|
|||||||
public static void register(Protocol protocol) {
|
public static void register(Protocol protocol) {
|
||||||
|
|
||||||
// Open Sign Editor
|
// Open Sign Editor
|
||||||
protocol.registerOutgoing(State.PLAY, 0x2C, 0x2D, new PacketRemapper() {
|
protocol.registerOutgoing(State.PLAY, 0x2C, 0x2E, new PacketRemapper() {
|
||||||
@Override
|
@Override
|
||||||
public void registerMap() {
|
public void registerMap() {
|
||||||
map(Type.POSITION, Type.POSITION1_14);
|
map(Type.POSITION, Type.POSITION1_14);
|
||||||
@ -110,7 +110,7 @@ public class PlayerPackets {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Update Structure Block
|
// Update Structure Block
|
||||||
protocol.registerIncoming(State.PLAY, 0x25, 0x27, new PacketRemapper() {
|
protocol.registerIncoming(State.PLAY, 0x25, 0x28, new PacketRemapper() {
|
||||||
@Override
|
@Override
|
||||||
public void registerMap() {
|
public void registerMap() {
|
||||||
map(Type.POSITION1_14, Type.POSITION);
|
map(Type.POSITION1_14, Type.POSITION);
|
||||||
@ -118,7 +118,7 @@ public class PlayerPackets {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Update Sign
|
// Update Sign
|
||||||
protocol.registerIncoming(State.PLAY, 0x26, 0x28, new PacketRemapper() {
|
protocol.registerIncoming(State.PLAY, 0x26, 0x29, new PacketRemapper() {
|
||||||
@Override
|
@Override
|
||||||
public void registerMap() {
|
public void registerMap() {
|
||||||
map(Type.POSITION1_14, Type.POSITION);
|
map(Type.POSITION1_14, Type.POSITION);
|
||||||
@ -126,7 +126,7 @@ public class PlayerPackets {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Player Block Placement
|
// Player Block Placement
|
||||||
protocol.registerIncoming(State.PLAY, 0x29, 0x2B, new PacketRemapper() {
|
protocol.registerIncoming(State.PLAY, 0x29, 0x2C, new PacketRemapper() {
|
||||||
@Override
|
@Override
|
||||||
public void registerMap() {
|
public void registerMap() {
|
||||||
handler(new PacketHandler() {
|
handler(new PacketHandler() {
|
||||||
|
@ -299,6 +299,11 @@ public class WorldPackets {
|
|||||||
difficultyPacket.write(Type.UNSIGNED_BYTE, difficulty);
|
difficultyPacket.write(Type.UNSIGNED_BYTE, difficulty);
|
||||||
difficultyPacket.write(Type.BOOLEAN, false); // Unknown value added in 19w11a
|
difficultyPacket.write(Type.BOOLEAN, false); // Unknown value added in 19w11a
|
||||||
difficultyPacket.send(protocol.getClass());
|
difficultyPacket.send(protocol.getClass());
|
||||||
|
|
||||||
|
wrapper.passthrough(Type.UNSIGNED_BYTE); // Max Players
|
||||||
|
wrapper.passthrough(Type.STRING); // Level Type
|
||||||
|
|
||||||
|
wrapper.write(Type.VAR_INT, 0); // Added in 19w13a, maybe difficulty?
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -12354,6 +12354,7 @@
|
|||||||
"block.end_portal.spawn",
|
"block.end_portal.spawn",
|
||||||
"entity.evoker.ambient",
|
"entity.evoker.ambient",
|
||||||
"entity.evoker.cast_spell",
|
"entity.evoker.cast_spell",
|
||||||
|
"entity.evoker.celebrate",
|
||||||
"entity.evoker.death",
|
"entity.evoker.death",
|
||||||
"entity.evoker_fangs.attack",
|
"entity.evoker_fangs.attack",
|
||||||
"entity.evoker.hurt",
|
"entity.evoker.hurt",
|
||||||
@ -12466,6 +12467,7 @@
|
|||||||
"entity.husk.step",
|
"entity.husk.step",
|
||||||
"entity.ravager.ambient",
|
"entity.ravager.ambient",
|
||||||
"entity.ravager.attack",
|
"entity.ravager.attack",
|
||||||
|
"entity.ravager.celebrate",
|
||||||
"entity.ravager.death",
|
"entity.ravager.death",
|
||||||
"entity.ravager.hurt",
|
"entity.ravager.hurt",
|
||||||
"entity.ravager.step",
|
"entity.ravager.step",
|
||||||
@ -12636,6 +12638,7 @@
|
|||||||
"entity.pig.saddle",
|
"entity.pig.saddle",
|
||||||
"entity.pig.step",
|
"entity.pig.step",
|
||||||
"entity.pillager.ambient",
|
"entity.pillager.ambient",
|
||||||
|
"entity.pillager.celebrate",
|
||||||
"entity.pillager.death",
|
"entity.pillager.death",
|
||||||
"entity.pillager.hurt",
|
"entity.pillager.hurt",
|
||||||
"block.piston.contract",
|
"block.piston.contract",
|
||||||
@ -12845,6 +12848,7 @@
|
|||||||
"entity.vex.death",
|
"entity.vex.death",
|
||||||
"entity.vex.hurt",
|
"entity.vex.hurt",
|
||||||
"entity.villager.ambient",
|
"entity.villager.ambient",
|
||||||
|
"entity.villager.celebrate",
|
||||||
"entity.villager.death",
|
"entity.villager.death",
|
||||||
"entity.villager.hurt",
|
"entity.villager.hurt",
|
||||||
"entity.villager.no",
|
"entity.villager.no",
|
||||||
@ -12864,6 +12868,7 @@
|
|||||||
"entity.villager.work_toolsmith",
|
"entity.villager.work_toolsmith",
|
||||||
"entity.villager.work_weaponsmith",
|
"entity.villager.work_weaponsmith",
|
||||||
"entity.vindicator.ambient",
|
"entity.vindicator.ambient",
|
||||||
|
"entity.vindicator.celebrate",
|
||||||
"entity.vindicator.death",
|
"entity.vindicator.death",
|
||||||
"entity.vindicator.hurt",
|
"entity.vindicator.hurt",
|
||||||
"block.lily_pad.place",
|
"block.lily_pad.place",
|
||||||
@ -12881,6 +12886,7 @@
|
|||||||
"weather.rain",
|
"weather.rain",
|
||||||
"weather.rain.above",
|
"weather.rain.above",
|
||||||
"entity.witch.ambient",
|
"entity.witch.ambient",
|
||||||
|
"entity.witch.celebrate",
|
||||||
"entity.witch.death",
|
"entity.witch.death",
|
||||||
"entity.witch.drink",
|
"entity.witch.drink",
|
||||||
"entity.witch.hurt",
|
"entity.witch.hurt",
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>viaversion-parent</artifactId>
|
<artifactId>viaversion-parent</artifactId>
|
||||||
<groupId>us.myles</groupId>
|
<groupId>us.myles</groupId>
|
||||||
<version>2.0.0-19w12b</version>
|
<version>2.0.0-19w13a</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<name>viaversion-jar</name>
|
<name>viaversion-jar</name>
|
||||||
|
2
pom.xml
2
pom.xml
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<groupId>us.myles</groupId>
|
<groupId>us.myles</groupId>
|
||||||
<artifactId>viaversion-parent</artifactId>
|
<artifactId>viaversion-parent</artifactId>
|
||||||
<version>2.0.0-19w12b</version>
|
<version>2.0.0-19w13a</version>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
<name>viaversion-parent</name>
|
<name>viaversion-parent</name>
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>viaversion-parent</artifactId>
|
<artifactId>viaversion-parent</artifactId>
|
||||||
<groupId>us.myles</groupId>
|
<groupId>us.myles</groupId>
|
||||||
<version>2.0.0-19w12b</version>
|
<version>2.0.0-19w13a</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>viaversion-parent</artifactId>
|
<artifactId>viaversion-parent</artifactId>
|
||||||
<groupId>us.myles</groupId>
|
<groupId>us.myles</groupId>
|
||||||
<version>2.0.0-19w12b</version>
|
<version>2.0.0-19w13a</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>viaversion-parent</artifactId>
|
<artifactId>viaversion-parent</artifactId>
|
||||||
<groupId>us.myles</groupId>
|
<groupId>us.myles</groupId>
|
||||||
<version>2.0.0-19w12b</version>
|
<version>2.0.0-19w13a</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren