Update buildscript & apply automatic formatting rules

This commit is contained in:
Raven Szewczyk committed 2022-06-24 12:32:13 +01:00
1 parent a7683b885d
commit e1dc20499c
173 files changed
+4581 -5321

No files matched your search

@@ -2,14 +2,13 @@ package codechicken.nei;
import codechicken.lib.vec.Rectangle4i;
import codechicken.nei.api.INEIGuiAdapter;
import java.util.Collection;
import net.minecraft.client.Minecraft;
import net.minecraft.client.entity.EntityPlayerSP;
import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.client.renderer.InventoryEffectRenderer;
import net.minecraft.potion.PotionEffect;
import java.util.Collection;
/**
* Inspired by InventoryEffectRendererGuiHandler.java in JEI
*/
@@ -20,7 +19,7 @@ public class NEIPotionGuiHandler extends INEIGuiAdapter {
return false;
}
if(guiContainer instanceof InventoryEffectRenderer) {
if (guiContainer instanceof InventoryEffectRenderer) {
int x = guiContainer.guiLeft - 124;
int y = guiContainer.guiTop;
Minecraft minecraft = guiContainer.mc;
@@ -42,8 +41,7 @@ public class NEIPotionGuiHandler extends INEIGuiAdapter {
Rectangle4i slotRect = new Rectangle4i(slotX, slotY, slotW, slotH);
for (PotionEffect potioneffect : activePotionEffects) {
Rectangle4i box = new Rectangle4i(x, y, 140, 32);
if(box.intersects(slotRect))
return true;
if (box.intersects(slotRect)) return true;
y += height;
}
}