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

View File

@ -67,7 +67,7 @@
<maven.minimumVersion>3.6.3</maven.minimumVersion> <maven.minimumVersion>3.6.3</maven.minimumVersion>
<!-- Dependencies versions --> <!-- Dependencies versions -->
<spigot.version>1.20.2-R0.1-SNAPSHOT</spigot.version> <spigot.version>1.20.4-R0.1-SNAPSHOT</spigot.version>
<!-- Versioning properties --> <!-- Versioning properties -->
<project.outputName>AuthMe</project.outputName> <project.outputName>AuthMe</project.outputName>

View File

@ -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) { public void runTaskIfFolia(Entity entity, Runnable task) {
if (IS_FOLIA) { if (IS_FOLIA) {
runTask(entity, task); 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) { public void runTaskIfFolia(Location location, Runnable task) {
if (IS_FOLIA) { if (IS_FOLIA) {
runTask(location, task); runTask(location, task);