mirror of
https://github.com/GTNewHorizons/BloodMagic.git
synced 2026-11-18 19:29:34 +00:00
This works to make it only show this info on the first page of results, which seems fine.
This commit is contained in:
1 parent
3eeabd90ae
commit
395e9c6b10
1 file changed
+7
-8
@@ -82,16 +82,15 @@ public class NEIBindingRitualHandler extends TemplateRecipeHandler {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Draws for every recipe, but it should really just do it once per page.
|
||||
*
|
||||
* @param recipe The recipeIndex being drawn
|
||||
*/
|
||||
@Override
|
||||
public void drawExtras(int recipe) {
|
||||
super.drawExtras(recipe);
|
||||
ritualInfo.onDraw(0, 0);
|
||||
reagentInfo.onDraw(150, 0);
|
||||
|
||||
// Only shows these for the first result
|
||||
if (recipe == 0) {
|
||||
ritualInfo.onDraw(0, 0);
|
||||
reagentInfo.onDraw(150, 0);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -100,7 +99,7 @@ public class NEIBindingRitualHandler extends TemplateRecipeHandler {
|
||||
CachedRecipe cRecipe = arecipes.get(recipeIndex);
|
||||
Point mousePos = GuiDraw.getMousePosition();
|
||||
|
||||
if (cRecipe instanceof NEIBindingRitualHandler.CachedBindingRecipe) {
|
||||
if (recipeIndex == 0 && cRecipe instanceof NEIBindingRitualHandler.CachedBindingRecipe) {
|
||||
Rectangle rect = ritualInfo.getRect(gui);
|
||||
if (rect.contains(mousePos)) {
|
||||
ritualInfo.onHover(list);
|
||||
|
||||
Reference in new issue
Block a user