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:
@@ -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);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user