Add proper button and tooltips to interface terminal

This commit is contained in:
Salomão
2021-03-28 10:11:08 -03:00
parent 362b001cb4
commit 77d615559f
9 changed files with 74 additions and 32 deletions
@@ -19,6 +19,7 @@
package appeng.core.localization;
import appeng.api.config.SchedulingMode;
import net.minecraft.util.text.translation.I18n;
@@ -151,6 +152,13 @@ public enum ButtonToolTips
DecreaseByOneDesc,
MaxCount,
MaxCountDesc,
FreeMolecularSlotShortcut,
FreeMolecularSlotShortcutDesc,
ToggleShowFullInterfaces,
ToggleShowFullInterfacesOnDesc,
ToggleShowFullInterfacesOffDesc,
HighlightInterface,
HighlightInterfaceDesc,
// Used in the tooltips of the items in the terminal, when moused over
ItemsStored,
@@ -262,9 +262,12 @@ public class PacketJEIRecipe extends AppEngPacket
}
}
}
if( currentItem.isEmpty() && this.recipe[x] != null)
if (!cct.useRealItems())
{
currentItem = this.recipe[x][0].copy();
if( currentItem.isEmpty() && this.recipe[x] != null )
{
currentItem = this.recipe[x][0].copy();
}
}
}
ItemHandlerUtil.setStackInSlot( craftMatrix, x, currentItem );