Skip to content

Commit

Permalink
docs: update license year
Browse files Browse the repository at this point in the history
  • Loading branch information
raoulvdberge committed Jan 1, 2025
1 parent 37495c8 commit c627923
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# The MIT License (MIT)

Copyright © 2020 - 2024 Refined Mods
Copyright © 2020 - 2025 Refined Mods

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the “Software”), to deal in the Software without restriction, including without limitation the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ public <T> void calculate(final ResourceKey resource,
CoreValidations.validateLargerThanZero(amount, "Requested amount must be greater than 0");
final Collection<Pattern> patterns = patternRepository.getByOutput(resource);
CraftingCalculatorListener<T> lastChildListener = null;
Amount lastPatternAmount = null;
for (final Pattern pattern : patterns) {
final Amount patternAmount = Amount.of(pattern, resource, amount);
if (patternAmount.getTotal() < 0) {
Expand All @@ -45,7 +44,6 @@ public <T> void calculate(final ResourceKey resource,
final CraftingTree.CalculationResult calculationResult = tree.calculate();
if (calculationResult == CraftingTree.CalculationResult.MISSING_RESOURCES) {
lastChildListener = childListener;
lastPatternAmount = patternAmount;
continue;
}
listener.childCalculationCompleted(childListener);
Expand Down

0 comments on commit c627923

Please sign in to comment.