3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-11-03 14:50:30 +01:00
Dieser Commit ist enthalten in:
KennyTV 2020-06-11 19:30:52 +02:00
Ursprung e1b2702231
Commit 989c0bf55f
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 6BE3B555EBC5982B
3 geänderte Dateien mit 16 neuen und 4 gelöschten Zeilen

Datei anzeigen

@ -80,7 +80,7 @@ public class ProtocolVersion {
register(v1_15 = new ProtocolVersion(573, "1.15")); register(v1_15 = new ProtocolVersion(573, "1.15"));
register(v1_15_1 = new ProtocolVersion(575, "1.15.1")); register(v1_15_1 = new ProtocolVersion(575, "1.15.1"));
register(v1_15_2 = new ProtocolVersion(578, "1.15.2")); register(v1_15_2 = new ProtocolVersion(578, "1.15.2"));
register(v1_16 = new ProtocolVersion(725, "1.16")); register(v1_16 = new ProtocolVersion(727, "1.16"));
register(unknown = new ProtocolVersion(-1, "UNKNOWN")); register(unknown = new ProtocolVersion(-1, "UNKNOWN"));
} }

Datei anzeigen

@ -109,7 +109,7 @@ public class Protocol1_16To1_15_2 extends Protocol<ClientboundPackets1_15, Clien
public void registerMap() { public void registerMap() {
handler(wrapper -> { handler(wrapper -> {
wrapper.passthrough(Type.VAR_INT); // Entity Id wrapper.passthrough(Type.VAR_INT); // Entity Id
int action = wrapper.passthrough(Type.VAR_INT); int action = wrapper.passthrough(Type.VAR_INT);
if (action == 0 || action == 2) { if (action == 0 || action == 2) {
if (action == 2) { if (action == 2) {
// Location // Location
@ -127,6 +127,18 @@ public class Protocol1_16To1_15_2 extends Protocol<ClientboundPackets1_15, Clien
} }
}); });
registerIncoming(ServerboundPackets1_16.PLAYER_ABILITIES, new PacketRemapper() {
@Override
public void registerMap() {
handler(wrapper -> {
wrapper.passthrough(Type.BYTE);
// Flying and walking speed - not important anyways
wrapper.write(Type.FLOAT, 0.05F);
wrapper.write(Type.FLOAT, 0.1F);
});
}
});
cancelIncoming(ServerboundPackets1_16.GENERATE_JIGSAW); cancelIncoming(ServerboundPackets1_16.GENERATE_JIGSAW);
cancelIncoming(ServerboundPackets1_16.UPDATE_JIGSAW_BLOCK); cancelIncoming(ServerboundPackets1_16.UPDATE_JIGSAW_BLOCK);
} }

Datei anzeigen

@ -18691,8 +18691,8 @@
"817": "minecraft:zoglin_spawn_egg", "817": "minecraft:zoglin_spawn_egg",
"818": "minecraft:zombie_spawn_egg", "818": "minecraft:zombie_spawn_egg",
"819": "minecraft:zombie_horse_spawn_egg", "819": "minecraft:zombie_horse_spawn_egg",
"820": "minecraft:zombified_piglin_spawn_egg", "820": "minecraft:zombie_villager_spawn_egg",
"821": "minecraft:zombie_villager_spawn_egg", "821": "minecraft:zombified_piglin_spawn_egg",
"822": "minecraft:experience_bottle", "822": "minecraft:experience_bottle",
"823": "minecraft:fire_charge", "823": "minecraft:fire_charge",
"824": "minecraft:writable_book", "824": "minecraft:writable_book",