[ci skip] spotlessApply with the new settings

This commit is contained in:
Jason Mitchell committed 2023-01-29 12:45:21 -08:00
1 parent 0e2d9e02a4
commit f2dc81704a
19 files changed
+150 -128

No files matched your search

@@ -1,9 +1,9 @@
package com.gtnh.findit;
import net.minecraftforge.common.config.Configuration;
import java.io.File;
import net.minecraftforge.common.config.Configuration;
public class FindItConfig {
public static int SEARCH_RADIUS = 16;
@@ -15,28 +15,18 @@ public class FindItConfig {
try {
config.load();
SEARCH_RADIUS = config.get(
Configuration.CATEGORY_GENERAL,
"SearchRadius",
"16",
"Radius to search within"
).getInt();
SEARCH_RADIUS = config.get(Configuration.CATEGORY_GENERAL, "SearchRadius", "16", "Radius to search within")
.getInt();
SEARCH_COOLDOWN = config.get(
Configuration.CATEGORY_GENERAL,
"SearchCooldown",
"10",
"Search cooldown in ticks"
).getInt();
SEARCH_COOLDOWN = config
.get(Configuration.CATEGORY_GENERAL, "SearchCooldown", "10", "Search cooldown in ticks").getInt();
MAX_RESPONSE_SIZE = config.get(
Configuration.CATEGORY_GENERAL,
"MaxResponseSize",
"20",
"Maximum number of positions that can be displayed by item/block search"
).getInt();
} catch (Exception ignore) {
} finally {
"Maximum number of positions that can be displayed by item/block search").getInt();
} catch (Exception ignore) {} finally {
if (config.hasChanged()) config.save();
}
}