From 6d1464d3f4b5475e1d956fdb042a4ce781498462 Mon Sep 17 00:00:00 2001 From: creeper123123321 Date: Wed, 10 Apr 2019 16:48:21 -0300 Subject: [PATCH] fix leave bed --- .../protocols/protocol1_14to1_13_2/packets/EntityPackets.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_14to1_13_2/packets/EntityPackets.java b/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_14to1_13_2/packets/EntityPackets.java index 137f83028..8034cd414 100644 --- a/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_14to1_13_2/packets/EntityPackets.java +++ b/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_14to1_13_2/packets/EntityPackets.java @@ -181,7 +181,7 @@ public class EntityPackets { public void handle(PacketWrapper wrapper) throws Exception { short animation = wrapper.passthrough(Type.UNSIGNED_BYTE); if (animation == 2) { //Leave bed - PacketWrapper metadataPacket = wrapper.create(0x3F); + PacketWrapper metadataPacket = wrapper.create(0x43); metadataPacket.write(Type.VAR_INT, wrapper.get(Type.VAR_INT, 0)); List metadataList = new LinkedList<>(); metadataList.add(new Metadata(12, MetaType1_14.OptPosition, null));