Skip to content

Commit

Permalink
Multiple things
Browse files Browse the repository at this point in the history
Remove unused accessor
Remove REI runtime
Make EMI and recipe book call render method of a recipe
  • Loading branch information
viciscat committed Nov 17, 2024
1 parent 7cfc1f0 commit 8221d1c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 19 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ dependencies {
// REI
modCompileOnly "me.shedaniel:RoughlyEnoughItems-api-fabric:${project.rei_version}"
modCompileOnly "me.shedaniel:RoughlyEnoughItems-api:${project.rei_version}"
modRuntimeOnly "me.shedaniel:RoughlyEnoughItems-fabric:${project.rei_version}"
//modRuntimeOnly "me.shedaniel:RoughlyEnoughItems-fabric:${project.rei_version}"

// EMI
modCompileOnly "dev.emi:emi-fabric:${project.emi_version}:api"
Expand Down Expand Up @@ -287,4 +287,4 @@ publishing {
// The repositories here will be used for publishing your artifact, not for
// retrieving dependencies.
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,6 @@ public void addWidgets(WidgetHolder widgets) {
for (SkyblockRecipe.RecipeSlot outputSlot : recipe.getOutputSlots(getDisplayWidth(), getDisplayHeight())) {
widgets.addSlot(EmiStack.of(outputSlot.stack()), outputSlot.x(), outputSlot.y()).recipeContext(this);
}
widgets.addDrawable(0, 0, getDisplayWidth(), getDisplayHeight(), (draw, mouseX, mouseY, delta) -> recipe.render(draw, getDisplayWidth(), getDisplayHeight(), mouseX, mouseY));
}
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@ public void render(DrawContext context, int mouseX, int mouseY, float delta) {
ScreenPos arrowLocation = recipe.getArrowLocation(125, 75);
if (arrowLocation != null) context.drawGuiTexture(ARROW_TEXTURE, arrowLocation.x(), arrowLocation.y(), 24, 16);

recipe.render(context, 125, 75, mouseX, mouseY);

matrices.pop();
}
for (ResultButtonWidget button : resultButtons)
Expand Down
5 changes: 1 addition & 4 deletions src/main/resources/skyblocker.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,5 @@
],
"injectors": {
"defaultRequire": 1
},
"mixins": [
"CreeperEntityAccessor"
]
}
}

0 comments on commit 8221d1c

Please sign in to comment.