Skip to content

Commit

Permalink
fix: šŸ› Fix storage item handler cap to always return the most currentā€¦
Browse files Browse the repository at this point in the history
ā€¦ item handler. Fixes an issue where storage placed in Integrated Dynamics network would not properly show items inserted into it.
  • Loading branch information
P3pp3rF1y committed Dec 12, 2023
1 parent b02e832 commit 7863c03
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ org.gradle.jvmargs=-Xmx3G
org.gradle.daemon=false
minecraft_version=1.18.2
forge_version=40.1.30
mod_version=3.19.4
mod_version=3.19.5
jei_mc_version=1.18.2
jei_version=9.7.2.281
curios_version=1.18.2-5.0.9.1
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.106.+
sc_version=1.18.2-0.5.110.+
crafting_tweaks_cf_file_id=3584842
chipped_cf_file_id=4293291
ctm_cf_file_id=3933537
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public <T> LazyOptional<T> getCapability(Capability<T> cap, @Nullable Direction

if (cap == CapabilityItemHandler.ITEM_HANDLER_CAPABILITY) {
if (itemHandlerCap == null) {
itemHandlerCap = LazyOptional.of(() -> new CachedFailedInsertInventoryHandler(getBackpackWrapper().getInventoryForInputOutput(), () -> level != null ? level.getGameTime() : 0));
itemHandlerCap = LazyOptional.of(() -> new CachedFailedInsertInventoryHandler(() -> getBackpackWrapper().getInventoryForInputOutput(), () -> level != null ? level.getGameTime() : 0));
}
return itemHandlerCap.cast();
} else if (cap == CapabilityFluidHandler.FLUID_HANDLER_CAPABILITY) {
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.106,)" #mandatory
versionRange="[1.18.2-0.5.110,)" #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 7863c03

Please sign in to comment.