3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-12-26 16:12:42 +01:00

Handle the actionbar packet change

Dieser Commit ist enthalten in:
Matsv 2016-11-06 10:37:26 +01:00
Ursprung cfaded6cf8
Commit 52bbf1affe

Datei anzeigen

@ -198,6 +198,27 @@ public class Protocol1_11To1_10 extends Protocol {
} }
}); });
// Title packet
registerOutgoing(State.PLAY, 0x45, 0x45, new PacketRemapper() {
@Override
public void registerMap() {
map(Type.VAR_INT); // 0 - Action
handler(new PacketHandler() {
@Override
public void handle(PacketWrapper wrapper) throws Exception {
int action = wrapper.get(Type.VAR_INT, 0);
// Handle the new ActionBar
if (action >= 2)
wrapper.set(Type.VAR_INT, 0, action + 1);
}
});
}
});
/* /*
INCOMING PACKETS INCOMING PACKETS
*/ */