From b5a9b3d068dc27bac29e94ba608173bc1a21e7ea Mon Sep 17 00:00:00 2001 From: yoyosource Date: Sat, 4 Feb 2023 19:56:04 +0100 Subject: [PATCH] Fix pr stuff --- SpigotCore_Main/src/de/steamwar/entity/REntityServer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SpigotCore_Main/src/de/steamwar/entity/REntityServer.java b/SpigotCore_Main/src/de/steamwar/entity/REntityServer.java index 68b2a11..7ebb46a 100644 --- a/SpigotCore_Main/src/de/steamwar/entity/REntityServer.java +++ b/SpigotCore_Main/src/de/steamwar/entity/REntityServer.java @@ -67,9 +67,9 @@ public class REntityServer implements Listener { if (action == 2) action = 0; int finalAction = action; - Bukkit.getScheduler().runTaskLater(Core.getInstance(), () -> { + Bukkit.getScheduler().runTask(Core.getInstance(), () -> { callback.onAction(player, entity, finalAction == 0 ? EntityAction.INTERACT : EntityAction.ATTACK); - }, 0); + }); return null; };