From 5e5f7ee874041f8b1de0c7d35d715f8d505835df Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sat, 20 Mar 2021 13:29:09 +0100 Subject: [PATCH] fix cleanup --- src/de/steamwar/spectatesystem/PacketProcessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/steamwar/spectatesystem/PacketProcessor.java b/src/de/steamwar/spectatesystem/PacketProcessor.java index 824e321..b372e7b 100644 --- a/src/de/steamwar/spectatesystem/PacketProcessor.java +++ b/src/de/steamwar/spectatesystem/PacketProcessor.java @@ -404,7 +404,7 @@ class PacketProcessor { } if(source.isClosed()){ - execSync(() -> endSpectating()); + Bukkit.getScheduler().runTask(SpectateSystem.get(), this::endSpectating); task.cancel(); } }