From c627923d8277a5a63b0e24793114e87666c91b5c Mon Sep 17 00:00:00 2001 From: raoulvdberge Date: Wed, 1 Jan 2025 01:58:15 +0100 Subject: [PATCH] docs: update license year --- LICENSE.md | 2 +- .../api/autocrafting/calculation/CraftingCalculatorImpl.java | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/LICENSE.md b/LICENSE.md index adfbd606c..a4b43faec 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -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 diff --git a/refinedstorage-autocrafting-api/src/main/java/com/refinedmods/refinedstorage/api/autocrafting/calculation/CraftingCalculatorImpl.java b/refinedstorage-autocrafting-api/src/main/java/com/refinedmods/refinedstorage/api/autocrafting/calculation/CraftingCalculatorImpl.java index ceecedeae..66acadc4b 100644 --- a/refinedstorage-autocrafting-api/src/main/java/com/refinedmods/refinedstorage/api/autocrafting/calculation/CraftingCalculatorImpl.java +++ b/refinedstorage-autocrafting-api/src/main/java/com/refinedmods/refinedstorage/api/autocrafting/calculation/CraftingCalculatorImpl.java @@ -31,7 +31,6 @@ public void calculate(final ResourceKey resource, CoreValidations.validateLargerThanZero(amount, "Requested amount must be greater than 0"); final Collection patterns = patternRepository.getByOutput(resource); CraftingCalculatorListener lastChildListener = null; - Amount lastPatternAmount = null; for (final Pattern pattern : patterns) { final Amount patternAmount = Amount.of(pattern, resource, amount); if (patternAmount.getTotal() < 0) { @@ -45,7 +44,6 @@ public 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);