aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/impl/RecipeHelperImpl.java
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2020-02-15 01:18:24 +0800
committershedaniel <daniel@shedaniel.me>2020-02-15 01:19:04 +0800
commit9ed854f764cb780abbd90c72f9175e24fc48f518 (patch)
tree7f673807d4eea310b2c780a3812b3a7bd6f79097 /src/main/java/me/shedaniel/rei/impl/RecipeHelperImpl.java
parent9debf93e15a642771d0987d6e8402858a963fa19 (diff)
downloadRoughlyEnoughItems-9ed854f764cb780abbd90c72f9175e24fc48f518.tar.gz
RoughlyEnoughItems-9ed854f764cb780abbd90c72f9175e24fc48f518.tar.bz2
RoughlyEnoughItems-9ed854f764cb780abbd90c72f9175e24fc48f518.zip
Beacon Base 4.0.2
Signed-off-by: shedaniel <daniel@shedaniel.me>
Diffstat (limited to 'src/main/java/me/shedaniel/rei/impl/RecipeHelperImpl.java')
-rw-r--r--src/main/java/me/shedaniel/rei/impl/RecipeHelperImpl.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/me/shedaniel/rei/impl/RecipeHelperImpl.java b/src/main/java/me/shedaniel/rei/impl/RecipeHelperImpl.java
index 88cbf1965..d559c1157 100644
--- a/src/main/java/me/shedaniel/rei/impl/RecipeHelperImpl.java
+++ b/src/main/java/me/shedaniel/rei/impl/RecipeHelperImpl.java
@@ -115,6 +115,15 @@ public class RecipeHelperImpl implements RecipeHelper {
recipeCategoryListMap.get(categoryIdentifier).add(display);
}
+ @Override
+ public void registerDisplay(RecipeDisplay display) {
+ Identifier identifier = Objects.requireNonNull(display.getRecipeCategory());
+ if (!recipeCategoryListMap.containsKey(identifier))
+ return;
+ recipeCount[0]++;
+ recipeCategoryListMap.get(identifier).add(display);
+ }
+
private void registerDisplay(Identifier categoryIdentifier, RecipeDisplay display, int index) {
if (!recipeCategoryListMap.containsKey(categoryIdentifier))
return;