mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-18 19:39:06 +00:00
Fix clicking on items in the bookmark panel. Thanks @monatann for contributing
This commit is contained in:
1 parent
abd1b38870
commit
bb40acc7a3
2 files changed
+13
-1
No files matched your search
@@ -2,4 +2,4 @@ mc_version=1.7.10
|
||||
forge_version=10.13.4.1614-1.7.10
|
||||
ccl_version=1.1.3.138
|
||||
ccc_version=1.0.7.+
|
||||
mod_version=2.0.0-beta-3-GTNH
|
||||
mod_version=2.0.0-beta-4-GTNH
|
||||
@@ -35,6 +35,18 @@ public class RecipeItemInputHandler implements IContainerInputHandler
|
||||
public boolean mouseClicked(GuiContainer gui, int mousex, int mousey, int button)
|
||||
{
|
||||
ItemStack stackover = GuiContainerManager.getStackMouseOver(gui);
|
||||
|
||||
if(mousex < ItemPanels.bookmarkPanel.w && stackover != null) {
|
||||
boolean cheat = NEIClientConfig.canCheatItem(stackover);
|
||||
if(button == 0 && !cheat)
|
||||
return GuiCraftingRecipe.openRecipeGui("item", stackover.copy());
|
||||
|
||||
if(button == 1 && !cheat)
|
||||
return GuiUsageRecipe.openRecipeGui("item", stackover.copy());
|
||||
|
||||
NEIClientUtils.cheatItem(stackover, button, -1);
|
||||
}
|
||||
|
||||
if(stackover == null || !(gui instanceof GuiRecipe))
|
||||
return false;
|
||||
|
||||
|
||||
Reference in new issue
Block a user