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,16 +919,11 @@ 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() {
|
||||||
|
map(Type.BYTE); // Window id
|
||||||
handler(new PacketHandler() {
|
handler(new PacketHandler() {
|
||||||
@Override
|
@Override
|
||||||
public void handle(PacketWrapper wrapper) throws Exception {
|
public void handle(PacketWrapper wrapper) throws Exception {
|
||||||
map(Type.BYTE); // Window id
|
wrapper.write(Type.VAR_INT, Integer.parseInt(wrapper.read(Type.STRING).substring(18)));
|
||||||
handler(new PacketHandler() {
|
|
||||||
@Override
|
|
||||||
public void handle(PacketWrapper wrapper) throws Exception {
|
|
||||||
wrapper.write(Type.VAR_INT, Integer.parseInt(wrapper.read(Type.STRING).substring(18)));
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -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