Skip to content

Commit

Permalink
fix: 🐛 Fixed anvil upgrade to allow more than 64 stack size if stack …
Browse files Browse the repository at this point in the history
…has this set using MAX_STACK_SIZE component
  • Loading branch information
P3pp3rF1y committed Oct 31, 2024
1 parent 3235deb commit 812e3f4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ loader_version_range=[4,)
mod_id=sophisticatedbackpacks
mod_name=Sophisticated Backpacks
mod_license=GNU General Public License v3.0
mod_version=3.20.17
mod_version=3.20.18
mod_group_id=sophisticatedbackpacks
mod_authors=P3pp3rF1y, Ridanisaurus
mod_description=Fancy and functional backpacks.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ protected InjectLootModifier(LootItemCondition[] conditions, ResourceKey<LootTab
this.lootTableToInjectInto = lootTableToInjectInto;
}

protected InjectLootModifier(ResourceKey<LootTable> lootTable, ResourceKey<LootTable>lootTableToInjectInto) {
this(new LootItemCondition[] {SBLootEnabledCondition.builder().build(),
protected InjectLootModifier(ResourceKey<LootTable> lootTable, ResourceKey<LootTable> lootTableToInjectInto) {
this(new LootItemCondition[]{SBLootEnabledCondition.builder().build(),
LootTableIdCondition.builder(lootTableToInjectInto.location()).build()}, lootTable, lootTableToInjectInto);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ protected void onContentsChanged(int slot, ItemStack oldStack, ItemStack newStac
save();
}

@Override
public int getSlotLimit(int slot) {
return 64;
}

@Override
public boolean isItemValid(int slot, ItemStack stack) {
return true;
Expand Down

0 comments on commit 812e3f4

Please sign in to comment.