Skip to content

Commit 41474ce

Browse files
add only server side support
1 parent 6cd9f53 commit 41474ce

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

src/main/java/com/laosun/stackone/IgnoreItem.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ public static ArrayList<String> getIgnoreItems() {
3737
fileReader.read(a1);
3838
} catch (IOException e) {
3939
LOGGER.error("Fail to open file!");
40-
LOGGER.error(Arrays.toString(e.getStackTrace()));
4140
}
4241

4342
Gson gson = new Gson();
@@ -53,8 +52,7 @@ public static ArrayList<String> getIgnoreItems() {
5352
}
5453

5554
} catch (Exception e) {
56-
LOGGER.error("Json has syntax error!");
57-
LOGGER.error(Arrays.toString(e.getStackTrace()));
55+
LOGGER.error("JSON has syntax error!");
5856
}
5957
return ignoreItems;
6058
}

src/main/resources/META-INF/mods.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ description='''${mod_description}'''
5353
# AFTER - This mod is loaded AFTER the dependency
5454
ordering="NONE"
5555
# Side this dependency is applied on - BOTH, CLIENT, or SERVER
56-
side="BOTH"
56+
side="SERVER"
5757
# Here's another dependency
5858
[[dependencies.${mod_id}]]
5959
modId="minecraft"
6060
mandatory=true
6161
# This version range declares a minimum of the current minecraft version up to but not including the next major version
6262
versionRange="${minecraft_version_range}"
6363
ordering="NONE"
64-
side="BOTH"
64+
side="SERVER"
6565

6666
# Features are specific properties of the game environment, that you may want to declare you require. This example declares
6767
# that your mod requires GL version 3.2 or higher. Other features will be added. They are side aware so declaring this won't

0 commit comments

Comments
 (0)