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 00cb02f commit 37aa349
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ org.gradle.daemon=false

mod_id=sophisticatedbackpacks
mod_group_id=sophisticatedbackpacks
mod_version=3.18.64
mod_version=3.18.65
sonar_project_key=sophisticatedbackpacks:SophisticatedBackpacks
github_package_url=https://maven.pkg.github.com/P3pp3rF1y/SophisticatedBackpacks

Expand All @@ -22,5 +22,5 @@ botania_version=1.19.2-439-FORGE-SNAPSHOT
patchouli_version=1.19.2-78-SNAPSHOT
balm_cf_file_id=4597440
crafting_tweaks_cf_file_id=4596466
sc_version=[1.20.1-0.5.96,1.21)
sc_version=[1.20.1-0.5.99,1.21)
parchment_version=1.19.3-2023.03.12-1.20
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,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 @@ -114,7 +113,7 @@ public BlockEntityWithoutLevelRenderer getCustomRenderer() {
public void addCreativeTabItems(Consumer<ItemStack> itemConsumer) {
super.addCreativeTabItems(itemConsumer);

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

Expand Down

0 comments on commit 37aa349

Please sign in to comment.