Skip to content

Commit

Permalink
fix: 🐛 Fix applying compression upgrade to barrel to always properly …
Browse files Browse the repository at this point in the history
…update block render in world
  • Loading branch information
P3pp3rF1y committed Sep 1, 2023
1 parent 2de296d commit 9e3c8c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ org.gradle.internal.publish.checksums.insecure=true
org.gradle.daemon=false
minecraft_version=1.18.2
forge_version=40.1.30
mod_version=0.8.41
mod_version=0.8.42
jei_mc_version=1.18.2
jei_version=9.7.0+
balm_cf_file_id=3914491
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import net.p3pp3rf1y.sophisticatedcore.inventory.InventoryHandler;
import net.p3pp3rf1y.sophisticatedcore.inventory.InventoryPartRegistry;
import net.p3pp3rf1y.sophisticatedcore.inventory.InventoryPartitioner;
import net.p3pp3rf1y.sophisticatedcore.settings.itemdisplay.ItemDisplaySettingsCategory;
import net.p3pp3rf1y.sophisticatedcore.settings.memory.MemorySettingsCategory;
import net.p3pp3rf1y.sophisticatedcore.upgrades.UpgradeItemBase;
import net.p3pp3rf1y.sophisticatedcore.upgrades.UpgradeType;
Expand Down Expand Up @@ -105,6 +106,7 @@ public void onAdded() {
setFirstInventorySlot(slotRange.firstSlot());
inventoryPartitioner.addInventoryPart(slotRange.firstSlot(), slotRange.numberOfSlots(), new CompressionInventoryPart(storageWrapper.getInventoryHandler(), slotRange, () -> storageWrapper.getSettingsHandler().getTypeCategory(MemorySettingsCategory.class)));
});
storageWrapper.getSettingsHandler().getTypeCategory(ItemDisplaySettingsCategory.class).itemsChanged();
}

private void setFirstInventorySlot(int firstInventorySlot) {
Expand Down

0 comments on commit 9e3c8c4

Please sign in to comment.