Ignored async exceptions in PacketWindowItems.kt

This commit is contained in:
Auxilor
2021-11-02 17:09:48 +00:00
parent e90e053b45
commit 0c4bd182f7

View File

@@ -45,7 +45,11 @@ class PacketWindowItems(plugin: EcoPlugin) : AbstractPacketAdapter(plugin, Packe
if (usingAsync()) {
executor.execute {
modifyWindowItems(itemStacks, windowId, player)
try {
modifyWindowItems(itemStacks, windowId, player)
} catch (e: Exception) {
// Don't do anything, just accept defeat
}
val newPacket = packet.deepClone()
newPacket.itemListModifier.write(0, itemStacks)