Skip to content

Commit

Permalink
Fix for unnecessary? config changes in recent neo.. 😞
Browse files Browse the repository at this point in the history
Signed-off-by: cpw <[email protected]>
  • Loading branch information
cpw committed Jul 12, 2024
1 parent e648458 commit b9687e7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
# This is required to provide enough memory for the Minecraft decompilation process.
org.gradle.jvmargs=-Xmx3G
org.gradle.daemon=false
neo_version=21.0.13-beta
neo_version=21.0.86-beta
mc_version=1.21
4 changes: 2 additions & 2 deletions src/main/java/cpw/mods/inventorysorter/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ private ClientConfig(ModConfigSpec.Builder builder) {

public static void register(ModContainer modContainer)
{
modContainer.registerConfig(ModConfig.Type.CLIENT, ClientConfig.SPEC.self());
modContainer.registerConfig(ModConfig.Type.SERVER, ServerConfig.SPEC.self());
modContainer.registerConfig(ModConfig.Type.CLIENT, ClientConfig.SPEC);
modContainer.registerConfig(ModConfig.Type.SERVER, ServerConfig.SPEC);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ boolean isContainerBlacklisted(ResourceLocation container) {
return containerblacklist.contains(container.toString()) || Config.ServerConfig.CONFIG.containerBlacklist.get().contains(container.toString());
}
void onConfigLoad(ModConfigEvent configEvent) {
if (configEvent.getConfig().getConfigData() == null) return; // Bug in forge means that we might get called back on server exit
switch (configEvent.getConfig().getType()) {
case SERVER:
this.slotblacklist.addAll(Config.ServerConfig.CONFIG.slotBlacklist.get());
Expand Down

0 comments on commit b9687e7

Please sign in to comment.