mirror of
https://github.com/ViaVersion/ViaLegacy.git
synced 2024-12-22 16:38:16 +01:00
Merge pull request #57 from FlorianMichael/main
Fixed 1.8 -> 1.7 update score translation
This commit is contained in:
commit
92457695f2
@ -1056,8 +1056,9 @@ public class Protocol1_8to1_7_6_10 extends AbstractProtocol<ClientboundPackets1_
|
||||
@Override
|
||||
public void register() {
|
||||
map(Type.STRING); // name
|
||||
map(Type.BYTE, Type.VAR_INT); // mode
|
||||
handler(wrapper -> {
|
||||
final byte mode = wrapper.passthrough(Type.BYTE); // mode
|
||||
final int mode = wrapper.get(Type.VAR_INT, 0); // mode
|
||||
if (mode == 0/*UPDATE*/) {
|
||||
wrapper.passthrough(Type.STRING); // objective
|
||||
wrapper.write(Type.VAR_INT, wrapper.read(Type.INT)); // score
|
||||
|
Loading…
Reference in New Issue
Block a user