mirror of
https://github.com/GTNewHorizons/CraftTweaker.git
synced 2026-11-22 04:52:21 +00:00
Added a few checks
This commit is contained in:
1 parent
ab1eb5cff5
commit
2c24f3f77a
5 files changed
+20
-32
No files matched your search
@@ -34,7 +34,9 @@ public class ForgeEventHandler{
|
||||
for(IFormattedText tooltip : IngredientTooltips.getTooltips(itemStack)){
|
||||
ev.getToolTip().add(((IMCFormattedString) tooltip).getTooltipString());
|
||||
}
|
||||
|
||||
if (!Keyboard.isCreated()) {
|
||||
return;
|
||||
}
|
||||
if(Keyboard.isKeyDown(Keyboard.KEY_LSHIFT) || Keyboard.isKeyDown(Keyboard.KEY_RSHIFT)){
|
||||
for(IFormattedText tooltip : IngredientTooltips.getShiftTooltips(itemStack)){
|
||||
ev.getToolTip().add(((IMCFormattedString) tooltip).getTooltipString());
|
||||
|
||||
Reference in new issue
Block a user