Delay packs
This commit is contained in:
parent
166658b99b
commit
67a873b37f
@ -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;
|
||||||
|
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user