Skip to content

Commit

Permalink
Make the NEI tooltip fix selective to only GuiLargeVessel and GuiBarrel
Browse files Browse the repository at this point in the history
  • Loading branch information
dries007 committed Nov 15, 2015
1 parent 78d3216 commit f0a49a3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/Common/com/bioxx/tfc/ClientProxy.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
import com.bioxx.tfc.Core.TFC_Time;
import com.bioxx.tfc.Entities.*;
import com.bioxx.tfc.Entities.Mobs.*;
import com.bioxx.tfc.GUI.GuiBarrel;
import com.bioxx.tfc.GUI.GuiLargeVessel;
import com.bioxx.tfc.Handlers.BiomeEventHandler;
import com.bioxx.tfc.Handlers.Client.*;
import com.bioxx.tfc.Render.*;
Expand Down Expand Up @@ -537,8 +539,11 @@ public List<String> handleItemDisplayName(GuiContainer gui, ItemStack itemstack,
@Override
public List<String> handleItemTooltip(GuiContainer gui, ItemStack itemstack, int mousex, int mousey, List<String> currenttip)
{
Slot slot = gui.getSlotAtPosition(mousex, mousey);
if (slot != null && !slot.func_111238_b()) currenttip.clear();
if (gui instanceof GuiLargeVessel || gui instanceof GuiBarrel)
{
Slot slot = gui.getSlotAtPosition(mousex, mousey);
if (slot != null && !slot.func_111238_b()) currenttip.clear();
}
return currenttip;
}
});
Expand Down

0 comments on commit f0a49a3

Please sign in to comment.