Use spigot-api 1.20.4

This commit is contained in:
HaHaWTH
2024-03-26 01:01:18 +08:00
parent a8e4489ae7
commit 5ecc6adf8f
2 changed files with 9 additions and 1 deletions
@@ -117,6 +117,10 @@ public class BukkitService implements SettingsDependent {
}
}
/**
* Runs the task synchronously if we are running Folia, else do nothing but run it.
* @param task the task to be run
*/
public void runTaskIfFolia(Entity entity, Runnable task) {
if (IS_FOLIA) {
runTask(entity, task);
@@ -125,6 +129,10 @@ public class BukkitService implements SettingsDependent {
}
}
/**
* Runs the task synchronously if we are running Folia, else do nothing but run it.
* @param task the task to be run
*/
public void runTaskIfFolia(Location location, Runnable task) {
if (IS_FOLIA) {
runTask(location, task);