浏览代码

Add output to information

Signed-off-by: shedaniel <daniel@shedaniel.me>
shedaniel 5 年之前
父节点
当前提交
f846171c94

+ 1 - 1
gradle.properties

@@ -1,5 +1,5 @@
 org.gradle.jvmargs=-Xmx3G
 org.gradle.jvmargs=-Xmx3G
-mod_version=4.10.0
+mod_version=4.10.1
 supported_version=1.16.x
 supported_version=1.16.x
 minecraft_version=1.16.1
 minecraft_version=1.16.1
 yarn_version=1.16.1+build.4+legacy.20w09a+build.8
 yarn_version=1.16.1+build.4+legacy.20w09a+build.8

+ 1 - 1
src/main/java/me/shedaniel/rei/plugin/information/DefaultInformationCategory.java

@@ -115,7 +115,7 @@ public class DefaultInformationCategory implements RecipeCategory<DefaultInforma
     public List<Widget> setupDisplay(DefaultInformationDisplay recipeDisplay, me.shedaniel.math.Rectangle bounds) {
     public List<Widget> setupDisplay(DefaultInformationDisplay recipeDisplay, me.shedaniel.math.Rectangle bounds) {
         List<Widget> widgets = Lists.newArrayList();
         List<Widget> widgets = Lists.newArrayList();
         widgets.add(Widgets.createLabel(new Point(bounds.getCenterX(), bounds.y + 3), recipeDisplay.getName()).noShadow().color(0xFF404040, 0xFFBBBBBB));
         widgets.add(Widgets.createLabel(new Point(bounds.getCenterX(), bounds.y + 3), recipeDisplay.getName()).noShadow().color(0xFF404040, 0xFFBBBBBB));
-        widgets.add(Widgets.createSlot(new Point(bounds.getCenterX() - 8, bounds.y + 15)).entries(recipeDisplay.getEntryStacks()).markInput());
+        widgets.add(Widgets.createSlot(new Point(bounds.getCenterX() - 8, bounds.y + 15)).entries(recipeDisplay.getEntryStacks()));
         Rectangle rectangle = new Rectangle(bounds.getCenterX() - (bounds.width / 2), bounds.y + 35, bounds.width, bounds.height - 40);
         Rectangle rectangle = new Rectangle(bounds.getCenterX() - (bounds.width / 2), bounds.y + 35, bounds.width, bounds.height - 40);
         widgets.add(Widgets.createSlotBase(rectangle));
         widgets.add(Widgets.createSlotBase(rectangle));
         widgets.add(new ScrollableTextWidget(rectangle, recipeDisplay.getTexts()));
         widgets.add(new ScrollableTextWidget(rectangle, recipeDisplay.getTexts()));

+ 1 - 1
src/main/java/me/shedaniel/rei/plugin/information/DefaultInformationDisplay.java

@@ -64,7 +64,7 @@ public class DefaultInformationDisplay implements RecipeDisplay {
     
     
     @Override
     @Override
     public List<EntryStack> getOutputEntries() {
     public List<EntryStack> getOutputEntries() {
-        return Collections.emptyList();
+        return entryStacks;
     }
     }
     
     
     public DefaultInformationDisplay line(Text line) {
     public DefaultInformationDisplay line(Text line) {