Skip to content

Commit

Permalink
add only server side support
Browse files Browse the repository at this point in the history
  • Loading branch information
12345-mcpython committed Feb 15, 2024
1 parent 6cd9f53 commit 41474ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions src/main/java/com/laosun/stackone/IgnoreItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ public static ArrayList<String> getIgnoreItems() {
fileReader.read(a1);
} catch (IOException e) {
LOGGER.error("Fail to open file!");
LOGGER.error(Arrays.toString(e.getStackTrace()));
}

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

} catch (Exception e) {
LOGGER.error("Json has syntax error!");
LOGGER.error(Arrays.toString(e.getStackTrace()));
LOGGER.error("JSON has syntax error!");
}
return ignoreItems;
}
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@ description='''${mod_description}'''
# AFTER - This mod is loaded AFTER the dependency
ordering="NONE"
# Side this dependency is applied on - BOTH, CLIENT, or SERVER
side="BOTH"
side="SERVER"
# Here's another dependency
[[dependencies.${mod_id}]]
modId="minecraft"
mandatory=true
# This version range declares a minimum of the current minecraft version up to but not including the next major version
versionRange="${minecraft_version_range}"
ordering="NONE"
side="BOTH"
side="SERVER"

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

0 comments on commit 41474ce

Please sign in to comment.