Switched from shallow to deep packet cloning for async

This commit is contained in:
Auxilor
2022-01-18 09:19:14 +00:00
parent b3a0634ad0
commit 8fa209a981

View File

@@ -48,7 +48,7 @@ class PacketWindowItems(plugin: EcoPlugin) : AbstractPacketAdapter(plugin, Packe
handleRateLimit(player)
if (usingAsync(player)) {
val newPacket = packet.shallowClone()
val newPacket = packet.deepClone()
executor.execute {
runCatchingWithLogs { modifyAndSend(newPacket, itemStacks, windowId, player) }