Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-09-08 22:02:50 +02:00
Commit
a58257bc38
@ -80,7 +80,7 @@ public class ProtocolVersion {
|
||||
register(v1_15 = new ProtocolVersion(573, "1.15"));
|
||||
register(v1_15_1 = new ProtocolVersion(575, "1.15.1"));
|
||||
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"));
|
||||
}
|
||||
|
@ -10,7 +10,7 @@ import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class TagRewriter {
|
||||
private static final int[] EMPTY_ARRAY = {-1};
|
||||
private static final int[] EMPTY_ARRAY = {};
|
||||
private final Protocol protocol;
|
||||
private final IdRewriteFunction blockRewriter;
|
||||
private final IdRewriteFunction itemRewriter;
|
||||
|
@ -109,7 +109,7 @@ public class Protocol1_16To1_15_2 extends Protocol<ClientboundPackets1_15, Clien
|
||||
public void registerMap() {
|
||||
handler(wrapper -> {
|
||||
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 == 2) {
|
||||
// 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.UPDATE_JIGSAW_BLOCK);
|
||||
}
|
||||
|
@ -18691,8 +18691,8 @@
|
||||
"817": "minecraft:zoglin_spawn_egg",
|
||||
"818": "minecraft:zombie_spawn_egg",
|
||||
"819": "minecraft:zombie_horse_spawn_egg",
|
||||
"820": "minecraft:zombified_piglin_spawn_egg",
|
||||
"821": "minecraft:zombie_villager_spawn_egg",
|
||||
"820": "minecraft:zombie_villager_spawn_egg",
|
||||
"821": "minecraft:zombified_piglin_spawn_egg",
|
||||
"822": "minecraft:experience_bottle",
|
||||
"823": "minecraft:fire_charge",
|
||||
"824": "minecraft:writable_book",
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren