Delay packs

This commit is contained in:
libraryaddict 2020-10-01 10:37:54 +13:00
parent 166658b99b
commit 67a873b37f
2 changed files with 2 additions and 2 deletions

View File

@ -132,7 +132,7 @@ public class PlayerSkinHandler implements Listener {
// Only do equip atm // Only do equip atm
if (type == Server.ENTITY_EQUIPMENT) { if (type == Server.ENTITY_EQUIPMENT) {
skin.getSleptPackets().computeIfAbsent(0, (a) -> new ArrayList<>()).add(packetContainer); skin.getSleptPackets().computeIfAbsent(3, (a) -> new ArrayList<>()).add(packetContainer);
} }
return true; return true;

View File

@ -274,7 +274,7 @@ public class PacketHandlerSpawn implements IPacketHandler {
mods.write(5, pitch); mods.write(5, pitch);
skin.getSleptPackets().computeIfAbsent(0, (a) -> new ArrayList<>()).add(teleport); skin.getSleptPackets().computeIfAbsent(0, (a) -> new ArrayList<>()).add(teleport);
skin.getSleptPackets().computeIfAbsent(2, (a) -> new ArrayList<>()).add(metaPacket); skin.getSleptPackets().computeIfAbsent(3, (a) -> new ArrayList<>()).add(metaPacket);
} }
} else if (disguise.isMobDisguise() || disguise.getType() == DisguiseType.ARMOR_STAND) { } else if (disguise.isMobDisguise() || disguise.getType() == DisguiseType.ARMOR_STAND) {
Vector vec = disguisedEntity.getVelocity(); Vector vec = disguisedEntity.getVelocity();