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); + }); } }