mirror of
https://github.com/Xiao-MoMi/Custom-Crops.git
synced 2025-12-25 18:09:28 +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),
|
||||
|
||||
@@ -46,10 +46,10 @@ worlds:
|
||||
# For crops, under the same conditions, the growth rate of crops is basically the same
|
||||
# For sprinklers and pots, they would work periodically.
|
||||
min-tick-unit: 300
|
||||
# Offline growth settings
|
||||
# Offline tick settings
|
||||
# This option allows crops to grow even if the world is unloaded or the server is closed
|
||||
# This may lead to some issues caused by timeliness conditions for instance seasons
|
||||
offline-growth:
|
||||
offline-tick:
|
||||
enable: false
|
||||
# Maximum offline time recorded in seconds
|
||||
# Please do not set this option to a value that is too large,
|
||||
|
||||
Reference in New Issue
Block a user