mirror of
https://github.com/GTNewHorizons/FindIt.git
synced 2026-11-24 18:24:21 +00:00
Search Fluids; Changed Block Highlighter (#13)
* Search Fluids; Changed Block Highlighter * fix hightlight when use rotate view --------- Co-authored-by: slprime <[email protected]>
This commit is contained in:
1 parent
9d6ce05d9e
commit
fc025b3b85
12 files changed
+303
-381
No files matched your search
@@ -3,7 +3,6 @@ package com.gtnh.findit.util;
|
||||
import net.minecraft.client.gui.inventory.GuiContainer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
import codechicken.nei.LayoutManager;
|
||||
import codechicken.nei.NEIClientConfig;
|
||||
import codechicken.nei.guihook.GuiContainerManager;
|
||||
import codechicken.nei.guihook.IContainerInputHandler;
|
||||
@@ -28,15 +27,11 @@ public abstract class AbstractStackFinder implements IContainerInputHandler {
|
||||
return false;
|
||||
}
|
||||
|
||||
LayoutManager layout = LayoutManager.instance();
|
||||
if (layout == null || LayoutManager.itemPanel == null || NEIClientConfig.isHidden()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
ItemStack stack = GuiContainerManager.getStackMouseOver(guiContainer);
|
||||
if (stack == null || stack.getItem() == null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return findStack(stack);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user