Mirror von
https://github.com/ViaVersion/ViaBackwards.git
synchronisiert 2024-12-27 16:40:12 +01:00
fix wrong protocol
Dieser Commit ist enthalten in:
Ursprung
e5a110f24f
Commit
7b9cde9946
@ -17,7 +17,6 @@ import us.myles.ViaVersion.api.remapper.PacketRemapper;
|
|||||||
import us.myles.ViaVersion.api.remapper.ValueTransformer;
|
import us.myles.ViaVersion.api.remapper.ValueTransformer;
|
||||||
import us.myles.ViaVersion.api.type.Type;
|
import us.myles.ViaVersion.api.type.Type;
|
||||||
import us.myles.ViaVersion.packets.State;
|
import us.myles.ViaVersion.packets.State;
|
||||||
import us.myles.ViaVersion.protocols.protocol1_11to1_10.Protocol1_11To1_10;
|
|
||||||
|
|
||||||
public class PlayerPackets1_11 {
|
public class PlayerPackets1_11 {
|
||||||
private static final ValueTransformer<Short, Float> toNewFloat = new ValueTransformer<Short, Float>(Type.FLOAT) {
|
private static final ValueTransformer<Short, Float> toNewFloat = new ValueTransformer<Short, Float>(Type.FLOAT) {
|
||||||
@ -48,7 +47,7 @@ public class PlayerPackets1_11 {
|
|||||||
actionbar.write(Type.STRING, wrapper.read(Type.STRING));
|
actionbar.write(Type.STRING, wrapper.read(Type.STRING));
|
||||||
actionbar.write(Type.BYTE, (byte) 2); // Above hotbar
|
actionbar.write(Type.BYTE, (byte) 2); // Above hotbar
|
||||||
|
|
||||||
actionbar.send(Protocol1_11To1_10.class);
|
actionbar.send(Protocol1_10To1_11.class);
|
||||||
|
|
||||||
wrapper.cancel(); // Cancel the title packet
|
wrapper.cancel(); // Cancel the title packet
|
||||||
return;
|
return;
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren