@@ -54,7 +54,9 @@ public static void callbackRegister(IWailaRegistrar registrar) {
5454
5555 CombinationRecipe recipe = core .getRecipe ();
5656 ItemStack output = recipe == null ? ItemStack .EMPTY : recipe .getOutput ();
57- tooltip .add (Utils .localize ("tooltip.ec.crafting" , output .getCount (), output .getDisplayName ()));
57+ if (!output .isEmpty ()) {
58+ tooltip .add (Utils .localize ("tooltip.ec.crafting" , output .getCount (), output .getDisplayName ()));
59+ }
5860 }),
5961 BlockCraftingCore .class
6062 );
@@ -88,7 +90,9 @@ public static void callbackRegister(IWailaRegistrar registrar) {
8890
8991 CompressorRecipe recipe = compressor .getRecipe ();
9092 ItemStack output = recipe == null ? ItemStack .EMPTY : recipe .getOutput ();
91- tooltip .add (Utils .localize ("tooltip.ec.crafting" , output .getCount (), output .getDisplayName ()));
93+ if (!output .isEmpty ()) {
94+ tooltip .add (Utils .localize ("tooltip.ec.crafting" , output .getCount (), output .getDisplayName ()));
95+ }
9296 }),
9397 BlockCompressor .class
9498 );
@@ -107,7 +111,7 @@ private static TooltipProvider table(int tier) {
107111 private static <T extends TileEntity > TooltipProvider checkTile (Class <T > clazz , TileBodyConsumer <T > consumer ) {
108112 return of ((stack , tooltip , data , config ) -> {
109113 TileEntity tile = data .getTileEntity ();
110- if (clazz .isInstance (tile ) && !tile .isInvalid ()) {
114+ if (clazz .isInstance (tile ) && !tile .isInvalid ()) {
111115 consumer .getWailaBody (stack , tooltip , data , config , clazz .cast (tile ));
112116 }
113117 });
0 commit comments