9
0
mirror of https://github.com/Xiao-MoMi/Custom-Crops.git synced 2025-12-25 18:09:28 +00:00

1.5.0-SNAPSHOT-3

This commit is contained in:
Xiao-MoMi
2022-07-04 22:11:12 +08:00
parent 3d71bed588
commit e4b625a196
12 changed files with 157 additions and 66 deletions

View File

@@ -25,8 +25,10 @@ public class TimeCheck extends BukkitRunnable {
if(time == cropGrowTime){
Bukkit.getScheduler().runTaskAsynchronously(CustomCrops.instance, () -> {
plugin.getCropManager().cropGrow(world.getName());
plugin.getSprinklerManager().sprinklerWork(world.getName());
});
Bukkit.getScheduler().runTaskLaterAsynchronously(CustomCrops.instance, ()->{
plugin.getSprinklerManager().sprinklerWork(world.getName());
}, ConfigReader.Config.timeToGrow);
}
});
});