mirror of
https://github.com/Xiao-MoMi/Custom-Crops.git
synced 2025-12-28 19:39:20 +00:00
changed config keys
This commit is contained in:
@@ -94,7 +94,6 @@ public class CChunk implements CustomCropsChunk {
|
||||
this.lastLoadedTime = current;
|
||||
var setting = cWorld.getWorldSetting();
|
||||
int minTickUnit = setting.getMinTickUnit();
|
||||
|
||||
for (int i = 0; i < offlineTimeInSeconds; i++) {
|
||||
this.loadedSeconds++;
|
||||
if (this.loadedSeconds >= minTickUnit) {
|
||||
|
||||
@@ -481,7 +481,7 @@ public class WorldManagerImpl implements WorldManager, Listener {
|
||||
this.worldAdaptor.loadChunkData(customCropsWorld, chunkPos);
|
||||
|
||||
// offline grow part
|
||||
if (!customCropsWorld.getWorldSetting().isOfflineGrow()) return;
|
||||
if (!customCropsWorld.getWorldSetting().isOfflineTick()) return;
|
||||
|
||||
// If chunk data not exists, return
|
||||
Optional<CustomCropsChunk> optionalChunk = customCropsWorld.getLoadedChunkAt(chunkPos);
|
||||
|
||||
@@ -70,8 +70,8 @@ public class ConfigUtils {
|
||||
section.getInt("pot.tick-interval", 2),
|
||||
getRandomTickModeByString(section.getString("sprinkler.mode")),
|
||||
section.getInt("sprinkler.tick-interval", 2),
|
||||
section.getBoolean("offline-growth.enable", false),
|
||||
section.getInt("offline-growth.max-offline-seconds", 1200),
|
||||
section.getBoolean("offline-tick.enable", false),
|
||||
section.getInt("offline-tick.max-offline-seconds", 1200),
|
||||
section.getBoolean("season.enable", false),
|
||||
section.getBoolean("season.auto-alternation", false),
|
||||
section.getInt("season.duration", 28),
|
||||
|
||||
Reference in New Issue
Block a user