Add config to ignore overlap with potion effect HUD (#255)

This commit is contained in:
miozune authored and GitHub committed 2022-05-31 16:38:14 +02:00
1 parent ae21012ea2
commit 68b9453328
3 files changed
+13

No files matched your search

@@ -16,6 +16,10 @@ import java.util.Collection;
public class NEIPotionGuiHandler extends INEIGuiAdapter {
@Override
public boolean hideItemPanelSlot(GuiContainer guiContainer, int slotX, int slotY, int slotW, int slotH) {
if (NEIClientConfig.ignorePotionOverlap()) {
return false;
}
if(guiContainer instanceof InventoryEffectRenderer) {
int x = guiContainer.guiLeft - 124;
int y = guiContainer.guiTop;