Skip to content

Commit 4d4d9c9

Browse files
committed
[#775] Support latest RS version
1 parent 8c9c728 commit 4d4d9c9

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ cc_version=1.116.0
3030
ae2things_version=5637783
3131
appliedenergistics_version=19.2.13
3232
appliedmekanistics_version=5978711
33-
refinedstorage_version=2.0.0-beta.2
33+
refinedstorage_version=2.0.0-beta.8
3434
refinedstorage_mekanism_version=1.0.0
3535
minecolonies_version=1.1.1020-1.21.1-snapshot
3636
patchouli_version=1.21-88

src/main/java/de/srendi/advancedperipherals/common/addons/refinedstorage/RSCraftJob.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package de.srendi.advancedperipherals.common.addons.refinedstorage;
22

3+
import com.refinedmods.refinedstorage.api.autocrafting.calculation.CancellationToken;
34
import com.refinedmods.refinedstorage.api.autocrafting.preview.Preview;
45
import com.refinedmods.refinedstorage.api.autocrafting.preview.PreviewType;
56
import com.refinedmods.refinedstorage.api.autocrafting.status.TaskStatus;
@@ -210,7 +211,7 @@ protected void maybeCraft() {
210211

211212
// How RS2 handles crafting is a bit cursed. We first create a preview which calculates the recipes, and then we check if the preview was successful
212213
// If it was, we again start a task which again calculates the recipes, and then we hope nothing changed from the first calculation
213-
futureTask = autocraftingComponent.startTask(toCraft, amount, Actor.EMPTY, false);
214+
futureTask = autocraftingComponent.startTask(toCraft, amount, Actor.EMPTY, false, CancellationToken.NONE);
214215
}
215216

216217
@Override
@@ -225,7 +226,7 @@ protected void startCalculation() {
225226
return;
226227
}
227228

228-
futureCalculationResult = autocraftingComponent.getPreview(toCraft, amount);
229+
futureCalculationResult = autocraftingComponent.getPreview(toCraft, amount, CancellationToken.NONE);
229230
fireEvent(false, StatusConstants.CALCULATION_STARTED);
230231
}
231232

0 commit comments

Comments
 (0)