Skip to content
This repository has been archived by the owner on May 29, 2022. It is now read-only.

Commit

Permalink
Change default value of tile ticking time (#393)
Browse files Browse the repository at this point in the history
* Change default value of tile ticking time

* Update NachoConfig.java
  • Loading branch information
Elier authored Apr 2, 2022
1 parent e77cc7d commit 10dd565
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public static void init(File configFile) {
File old_config = new File("nacho.json");
if(old_config.exists()) migrate(old_config);

int configVersion = 6; // Update this every new configuration update
int configVersion = 7; // Update this every new configuration update
version = getInt("config-version", configVersion);
set("config-version", configVersion);
c.setHeader(HEADER);
Expand Down Expand Up @@ -356,10 +356,15 @@ private static void enableFastMath() {
enableFastMath = getBoolean("settings.enable-fastmath", false);
}

public static int tileEntityTickingTime = 20;
public static int tileEntityTickingTime = 1;

private static void tileEntityTickingTime() {
tileEntityTickingTime = getInt("settings.tile-entity-ticking-time", 20);
int i = getInt("settings.tile-entity-ticking-time", 1);
if(version < 7 && i == 20) {
i = 1;
set("settings.tile-entity-ticking-time", 1);
}
tileEntityTickingTime = i;
}

public static int itemDirtyTicks;
Expand Down

0 comments on commit 10dd565

Please sign in to comment.