From 9028135f619b8ace9ca39a2dc81967b0baa8ac94 Mon Sep 17 00:00:00 2001 From: ManInMyVan Date: Wed, 30 Oct 2024 15:41:31 -0600 Subject: [PATCH] fix folia error --- .../ac/grim/grimac/events/packets/patch/ResyncWorldUtil.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/ac/grim/grimac/events/packets/patch/ResyncWorldUtil.java b/src/main/java/ac/grim/grimac/events/packets/patch/ResyncWorldUtil.java index 40cc77f5c0..82e7984d66 100644 --- a/src/main/java/ac/grim/grimac/events/packets/patch/ResyncWorldUtil.java +++ b/src/main/java/ac/grim/grimac/events/packets/patch/ResyncWorldUtil.java @@ -37,7 +37,7 @@ public static void resyncPositions(GrimPlayer player, int minBlockX, int mY, int // Takes 0.15ms or so to complete. Not bad IMO. Unsure how I could improve this other than sending packets async. // But that's on PacketEvents. - FoliaScheduler.getEntityScheduler().execute(player.bukkitPlayer, GrimAPI.INSTANCE.getPlugin(), () -> { + FoliaScheduler.getGlobalRegionScheduler().execute(GrimAPI.INSTANCE.getPlugin(), () -> { boolean flat = PacketEvents.getAPI().getServerManager().getVersion().isNewerThanOrEquals(ServerVersion.V_1_13); if (player.bukkitPlayer == null) return; @@ -111,6 +111,6 @@ public static void resyncPositions(GrimPlayer player, int minBlockX, int mY, int } } } - }, null, 0); + }); } }