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

fix loaded seconds

This commit is contained in:
XiaoMoMi
2024-12-30 22:35:50 +08:00
parent e181249e38
commit 0693988d34
3 changed files with 2 additions and 4 deletions

View File

@@ -139,6 +139,7 @@ public class CustomCropsChunkImpl implements CustomCropsChunk {
public void timer() {
WorldSetting setting = world.setting();
int interval = setting.minTickUnit();
if (this.loadedSeconds < 0) this.loadedSeconds = 0;
this.loadedSeconds++;
// if loadedSeconds reach another recycle, rearrange the tasks
if (this.loadedSeconds >= interval) {