Skip to content

Commit

Permalink
Actually block nesting items
Browse files Browse the repository at this point in the history
(cherry picked from commit 2f66e28)
  • Loading branch information
MattiDragon committed Nov 19, 2022
1 parent b5df6bc commit c76eec5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public boolean changeUpgrade(@Nullable UpgradeItem newUpgrade, World world, Bloc

@Override
public long insert(ItemVariant resource, long maxAmount, TransactionContext transaction) {
if (!resource.equals(item) && !item.isBlank()) return 0;
if (!resource.equals(item) && !item.isBlank() || !resource.getItem().canBeNested()) return 0;

updateSnapshots(transaction);
var inserted = Math.min(getCapacity() - amount, maxAmount);
Expand Down

0 comments on commit c76eec5

Please sign in to comment.