Skip to content

Commit

Permalink
fix: 🐛 Fix the enabledItems config that allows disabling sophisticate…
Browse files Browse the repository at this point in the history
…d items and their recipes by moving the config back to COMMON
  • Loading branch information
P3pp3rF1y committed Oct 20, 2023
1 parent abce923 commit f220ebf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
org.gradle.daemon=false
minecraft_version=1.18.2
forge_version=40.1.30
mod_version=3.18.64
mod_version=3.18.65
jei_mc_version=1.18.2
jei_version=9.7.0+
curios_version=1.18.2-5.0.6.+
botania_version=1.18.2-430-SNAPSHOT
patchouli_version=1.18.2-66
balm_cf_file_id=3914491
sc_version=1.18.2-0.5.94.+
sc_version=1.18.2-0.5.97.+
crafting_tweaks_cf_file_id=3584842
parchment_version=1.18.1-2022.03.06-1.18.2
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
import net.p3pp3rf1y.sophisticatedcore.api.IStashStorageItem;
import net.p3pp3rf1y.sophisticatedcore.api.IStorageWrapper;
import net.p3pp3rf1y.sophisticatedcore.client.gui.utils.TranslationHelper;
import net.p3pp3rf1y.sophisticatedcore.inventory.ItemStackKey;
import net.p3pp3rf1y.sophisticatedcore.settings.memory.MemorySettingsCategory;
import net.p3pp3rf1y.sophisticatedcore.upgrades.ITickableUpgrade;
import net.p3pp3rf1y.sophisticatedcore.upgrades.jukebox.ServerStorageSoundHandler;
Expand Down Expand Up @@ -120,7 +119,7 @@ public BlockEntityWithoutLevelRenderer getItemStackRenderer() {
public void fillItemCategory(CreativeModeTab group, NonNullList<ItemStack> items) {
super.fillItemCategory(group, items);

if (!allowdedIn(group) || this != ModItems.BACKPACK.get() || !net.p3pp3rf1y.sophisticatedcore.Config.SERVER.enabledItems.isItemEnabled(this)) {
if (!allowdedIn(group) || this != ModItems.BACKPACK.get() || !net.p3pp3rf1y.sophisticatedcore.Config.COMMON.enabledItems.isItemEnabled(this)) {
return;
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ side="BOTH"
[[dependencies.sophisticatedbackpacks]]
modId="sophisticatedcore" #mandatory
mandatory=true #mandatory
versionRange="[1.18.2-0.5.94,)" #mandatory
versionRange="[1.18.2-0.5.97,)" #mandatory
# An ordering relationship for the dependency - BEFORE or AFTER required if the relationship is not mandatory
ordering="NONE"
# Side this dependency is applied on - BOTH, CLIENT or SERVER
Expand Down

0 comments on commit f220ebf

Please sign in to comment.