Skip to content

Commit e2c2a52

Browse files
committed
Update MI
1 parent 1a5ab6d commit e2c2a52

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ mod_github=https://github.com/Swedz/tesseract-neoforge
3434
# Dependencies
3535
mixinextras_version=0.3.5
3636
emi_version=1.1.10
37-
modern_industrialization_version=2.2.12-beta
38-
modern_industrialization_version_range=[2.2.12-beta, 2.3-)
37+
modern_industrialization_version=2.2.17-beta
38+
modern_industrialization_version_range=[2.2.17-beta, 2.3-)
3939
grandpower_version=3.0.0
4040
cloth_config_version=15.0.127

src/main/java/net/swedz/tesseract/neoforge/compat/mi/mixin/hack/RegisterMultiblockShapeReiRecipeHackMixin.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public abstract class RegisterMultiblockShapeReiRecipeHackMixin
3131
method = "<init>",
3232
at = @At("RETURN")
3333
)
34-
private void init(String controller, ShapeTemplate shapeTemplate,
34+
private void init(String controller, ShapeTemplate shapeTemplate, String alternative,
3535
CallbackInfo callback)
3636
{
3737
for(String modId : MIHooks.getModIds())
@@ -41,8 +41,8 @@ private void init(String controller, ShapeTemplate shapeTemplate,
4141
if(!controllerItem.isEmpty())
4242
{
4343
this.setController(controllerItem);
44-
this.getMaterials().remove(0);
45-
this.getMaterials().add(0, controllerItem);
44+
this.getMaterials().removeFirst();
45+
this.getMaterials().addFirst(controllerItem);
4646
break;
4747
}
4848
}

0 commit comments

Comments
 (0)