From 5f7faabbff9985b5eb19a0aabc2d69cce9cf8e2f Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sat, 11 Mar 2023 19:49:02 +0100 Subject: [PATCH] Hotfix click recording Signed-off-by: Lixfel --- .../src/de/steamwar/fightsystem/listener/ClickAnalyzer.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/FightSystem_Core/src/de/steamwar/fightsystem/listener/ClickAnalyzer.java b/FightSystem_Core/src/de/steamwar/fightsystem/listener/ClickAnalyzer.java index bf0ea32..9aea4b2 100644 --- a/FightSystem_Core/src/de/steamwar/fightsystem/listener/ClickAnalyzer.java +++ b/FightSystem_Core/src/de/steamwar/fightsystem/listener/ClickAnalyzer.java @@ -43,7 +43,9 @@ public class ClickAnalyzer { } public Object onBlockPlace(Player player, Object packet) { - output.println(player.getName() + "," + System.nanoTime() + "," + CraftbukkitWrapper.impl.headRotation(player) + "," + player.getLocation().getPitch()); + synchronized(output) { + output.println(player.getName() + "," + System.nanoTime() + "," + CraftbukkitWrapper.impl.headRotation(player) + "," + player.getLocation().getPitch()); + } return packet; }