3
0
Mirror von https://github.com/ViaVersion/ViaBackwards.git synchronisiert 2024-07-03 14:18:03 +02:00
Dieser Commit ist enthalten in:
KennyTV 2021-05-27 15:46:08 +02:00
Ursprung 8adb80b5eb
Commit fb368a9ebe
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 6BE3B555EBC5982B
5 geänderte Dateien mit 11 neuen und 6 gelöschten Zeilen

Datei anzeigen

@ -27,6 +27,7 @@ You can find the latest dev builds here:\
Known issues
-
* Custom 1.17+ min_y and height world values are not and will (most likely) never be supported => Clients older than 1.17 will not be able to see or interact with blocks below y=0 and above y=255
* < 1.17 clients on 1.17+ servers might experience inventory desyncs on certain inventory click actions
* Sound mappings are incomplete ([see here](https://github.com/ViaVersion/ViaBackwards/issues/326))
Other Links

Datei anzeigen

@ -8,7 +8,7 @@ plugins {
allprojects {
group = "com.viaversion"
version = "4.0.0-21w20a-SNAPSHOT"
version = "4.0.0-1.17-pre1-SNAPSHOT"
description = "Allow older clients to join newer server versions."
}

Datei anzeigen

@ -75,7 +75,7 @@ public class BlockItemPackets1_17 extends com.viaversion.viabackwards.api.rewrit
}
});
// This will cause desync issues for players with a high latency, but works:tm:
//TODO This will cause desync issues for players under certain circumstances, but mostly works:tm:
protocol.registerServerbound(ServerboundPackets1_16_2.CLICK_WINDOW, new PacketRemapper() {
@Override
public void registerMap() {
@ -84,9 +84,11 @@ public class BlockItemPackets1_17 extends com.viaversion.viabackwards.api.rewrit
map(Type.BYTE); // Button
map(Type.SHORT, Type.NOTHING); // Action id - removed
map(Type.VAR_INT); // Mode
handler(wrapper -> {
wrapper.write(Type.VAR_INT, 0);
// The 1.17 client would check the entire inventory for changes before -> after a click and send the changed slots here
wrapper.write(Type.VAR_INT, 0); // Empty array of slot+item
// Expected is the carried item after clicking, old clients send the clicked one (*mostly* being the same)
handleItemToServer(wrapper.passthrough(Type.FLAT_VAR_INT_ITEM));
});
}

Datei anzeigen

@ -684,7 +684,9 @@
"minecraft:light": "minecraft:air",
"minecraft:raw_iron_block": "minecraft:iron_block",
"minecraft:raw_copper_block": "minecraft:iron_block",
"minecraft:raw_gold_block": "minecraft:gold_block"
"minecraft:raw_gold_block": "minecraft:gold_block",
"minecraft:potted_azalea_bush": "minecraft:potted_cactus",
"minecraft:potted_flowering_azalea_bush": "minecraft:potted_cactus"
},
"items": {
"minecraft:dirt_path": {

Datei anzeigen

@ -3,7 +3,7 @@ metadata.format.version = "1.0"
[versions]
# ViaVersion
viaver = "4.0.0-21w20a-SNAPSHOT"
viaver = "4.0.0-1.17-pre1-SNAPSHOT"
# Common provided
netty = "4.0.20.Final"