Skip to content

Commit

Permalink
Show Delete Item Tooltip only in creative (#517)
Browse files Browse the repository at this point in the history
Co-authored-by: slprime <[email protected]>
  • Loading branch information
slprime and slprime authored Aug 18, 2024
1 parent 72ad8aa commit e0171ad
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/codechicken/nei/HeldItemHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,10 @@ public List<String> handleTooltip(GuiContainer gui, int mousex, int mousey, List

if (contains(mousex, mousey)) {
currenttip.clear();
currenttip.add(EnumChatFormatting.RED + translate("itempanel.deleteItem"));

if (NEIClientConfig.canPerformAction("delete") && NEIClientConfig.canPerformAction("item")) {
currenttip.add(EnumChatFormatting.RED + translate("itempanel.deleteItem"));
}
}

return currenttip;
Expand Down

0 comments on commit e0171ad

Please sign in to comment.