Skip to content

Commit 13f4070

Browse files
committed
Merge branch 'dev/1.21.1' into release/1.21.1
2 parents cf66b3c + 4d4d9c9 commit 13f4070

5 files changed

Lines changed: 23 additions & 12 deletions

File tree

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,16 @@ body:
4141
multiple: false
4242
options:
4343
- Own compiled build.
44-
- 1.21.1-0.7.53b (Latest 1.21.1)
44+
- 1.21.1-0.7.55b (Latest 1.21.1)
45+
- 1.21.1-0.7.54b
46+
- 1.21.1-0.7.53b
4547
- 1.21.1-0.7.52b
4648
- 1.21.1-0.7.51b
4749
- 1.21.1-0.7.50b
4850
- 1.20.4-0.7.43a (Latest 1.20.4)
49-
- 1.20.1-0.7.41r (Latest 1.20.1)
50-
- 1.20.1-0.7.40r
51-
- 1.20.1-0.7.39r
51+
- 1.20.1-0.7.45r (Latest 1.20.1)
52+
- 1.20.1-0.7.44r
53+
- 1.20.1-0.7.43r
5254
- 1.19.2-0.7.37r (Latest 1.19.2)
5355
- 1.19.2-0.7.36r
5456
- 1.19.2-0.7.35r

build.gradle

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,10 @@ repositories {
159159
includeGroup("com.tterrag.registrate")
160160
}
161161
}
162+
maven {
163+
name = "TerraformersMC EMI"
164+
url = "https://maven.terraformersmc.com/"
165+
}
162166
maven {
163167
name = "SirEdvin's private repository"
164168
url = "https://repo.repsy.io/mvn/siredvin/default"
@@ -282,8 +286,8 @@ dependencies {
282286

283287
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${junit_version}"
284288
// Testing stuff
285-
// JEI
286-
implementation "mezz.jei:jei-${jei_version}"
289+
// EMI
290+
runtimeOnly "dev.emi:emi-neoforge:${emi_version}"
287291
}
288292

289293

gradle.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ ttoolkit_version=0.1.3
2828
cc_version=1.116.0
2929

3030
ae2things_version=5637783
31-
appliedenergistics_version=19.2.10
31+
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
@@ -49,5 +49,5 @@ emiVersion=1.1.11+1.21
4949
cloth_config_version=15.0.127
5050

5151
# Mod dependencies for testing stuff(Only used in the dev environment)
52-
jei_version=1.21.1-neoforge:19.19.6.235
52+
emi_version=1.1.22+1.21.1
5353
createadditions_version=5099752

src/main/java/de/srendi/advancedperipherals/common/addons/computercraft/peripheral/plugins/AutomataWarpingPlugin.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,13 @@ public final MethodResult warpToPoint(String name) throws LuaException {
115115
if (pairData.leftPresent())
116116
return pairData.getLeft();
117117

118+
CompoundTag data = pairData.getRight();
119+
120+
if (!data.contains(name))
121+
return MethodResult.of(null, "Cannot find point to teleport");
122+
118123
TurtlePeripheralOwner owner = automataCore.getPeripheralOwner();
119124
Level level = owner.getLevel();
120-
CompoundTag data = pairData.getRight();
121125
BlockPos newPosition = NBTUtil.blockPosFromNBT(data.getCompound(name));
122126
return automataCore.withOperation(WARP, automataCore.toDistance(newPosition), context -> {
123127
boolean result = owner.move(level, newPosition);

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)