Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-27 00:22:51 +01:00
facepalm
Dieser Commit ist enthalten in:
Ursprung
7fe99c98f0
Commit
7c6118bd6f
@ -919,9 +919,6 @@ public class Protocol1_13To1_12_2 extends Protocol {
|
|||||||
registerIncoming(State.PLAY, 0x12, 0x16, new PacketRemapper() {
|
registerIncoming(State.PLAY, 0x12, 0x16, new PacketRemapper() {
|
||||||
@Override
|
@Override
|
||||||
public void registerMap() {
|
public void registerMap() {
|
||||||
handler(new PacketHandler() {
|
|
||||||
@Override
|
|
||||||
public void handle(PacketWrapper wrapper) throws Exception {
|
|
||||||
map(Type.BYTE); // Window id
|
map(Type.BYTE); // Window id
|
||||||
handler(new PacketHandler() {
|
handler(new PacketHandler() {
|
||||||
@Override
|
@Override
|
||||||
@ -931,8 +928,6 @@ public class Protocol1_13To1_12_2 extends Protocol {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
registerIncoming(State.PLAY, 0x13, 0x17);
|
registerIncoming(State.PLAY, 0x13, 0x17);
|
||||||
registerIncoming(State.PLAY, 0x14, 0x18);
|
registerIncoming(State.PLAY, 0x14, 0x18);
|
||||||
@ -951,7 +946,8 @@ public class Protocol1_13To1_12_2 extends Protocol {
|
|||||||
|
|
||||||
if (type == 0) {
|
if (type == 0) {
|
||||||
wrapper.write(Type.INT, Integer.parseInt(wrapper.read(Type.STRING).substring(18)));
|
wrapper.write(Type.INT, Integer.parseInt(wrapper.read(Type.STRING).substring(18)));
|
||||||
} if (type == 1) {
|
}
|
||||||
|
if (type == 1) {
|
||||||
wrapper.passthrough(Type.BOOLEAN); // Crafting Recipe Book Open
|
wrapper.passthrough(Type.BOOLEAN); // Crafting Recipe Book Open
|
||||||
wrapper.passthrough(Type.BOOLEAN); // Crafting Recipe Filter Active
|
wrapper.passthrough(Type.BOOLEAN); // Crafting Recipe Filter Active
|
||||||
wrapper.read(Type.BOOLEAN); // Smelting Recipe Book Open | IGNORE NEW 1.13 FIELD
|
wrapper.read(Type.BOOLEAN); // Smelting Recipe Book Open | IGNORE NEW 1.13 FIELD
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren