Remove meta after a set tick, not last packet

This commit is contained in:
libraryaddict
2019-12-21 12:02:30 +13:00
parent 3ee66d918c
commit b2193ad021
2 changed files with 8 additions and 6 deletions

View File

@@ -254,6 +254,7 @@ public class PacketHandlerSpawn implements IPacketHandler {
// Add a delay to remove the entry from 'cancelMeta'
packets.addDelayedPacket(metaPacket, 7);
packets.setRemoveMetaAt(7);
}
// Remove player from the list
@@ -436,6 +437,7 @@ public class PacketHandlerSpawn implements IPacketHandler {
if (delayedArmor) {
packets.addDelayedPacket(packet, 7);
packets.setRemoveMetaAt(7);
} else {
packets.addDelayedPacket(packet);
}