mirror of
https://github.com/GTNewHorizons/FindIt.git
synced 2026-11-20 16:39:34 +00:00
[ci skip] spotlessApply with the new settings
This commit is contained in:
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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user