aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/mbgui/MBGuiGroupFloating.java
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal002@users.noreply.github.com>2023-05-31 13:06:27 +0200
committerGitHub <noreply@github.com>2023-05-31 13:06:27 +0200
commit744e7692843c65049e45f666973e1e37adcc7e9a (patch)
treeba31e4ff5a685f74455102209e1b127ed520cc9f /src/main/java/io/github/moulberry/notenoughupdates/mbgui/MBGuiGroupFloating.java
parentb40c37b653ba43d9603c578c440092c9f464935f (diff)
downloadnotenoughupdates-744e7692843c65049e45f666973e1e37adcc7e9a.tar.gz
notenoughupdates-744e7692843c65049e45f666973e1e37adcc7e9a.tar.bz2
notenoughupdates-744e7692843c65049e45f666973e1e37adcc7e9a.zip
Removing the neu AH (#627)
* Removed the neu ah. * make compile * make command say its removed * just what i wanted, an empty file --------- Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Co-authored-by: nopo <nopotheemail@gmail.com>
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/mbgui/MBGuiGroupFloating.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/mbgui/MBGuiGroupFloating.java14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/mbgui/MBGuiGroupFloating.java b/src/main/java/io/github/moulberry/notenoughupdates/mbgui/MBGuiGroupFloating.java
index c57f0b74..770a8423 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/mbgui/MBGuiGroupFloating.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/mbgui/MBGuiGroupFloating.java
@@ -19,8 +19,6 @@
package io.github.moulberry.notenoughupdates.mbgui;
-import io.github.moulberry.notenoughupdates.NotEnoughUpdates;
-import io.github.moulberry.notenoughupdates.auction.CustomAHGui;
import io.github.moulberry.notenoughupdates.miscgui.GuiItemRecipe;
import io.github.moulberry.notenoughupdates.util.Utils;
import net.minecraft.client.Minecraft;
@@ -57,9 +55,7 @@ public class MBGuiGroupFloating extends MBGuiGroup {
public Map<MBGuiElement, Vector2f> getChildrenPosition() {
GuiScreen currentScreen = Minecraft.getMinecraft().currentScreen;
- if (currentScreen instanceof GuiContainer || currentScreen instanceof GuiItemRecipe
- || currentScreen instanceof CustomAHGui ||
- NotEnoughUpdates.INSTANCE.manager.auctionManager.customAH.isRenderOverAuctionView()) {
+ if (currentScreen instanceof GuiContainer || currentScreen instanceof GuiItemRecipe) {
if (lastScreen != currentScreen) {
lastScreen = currentScreen;
@@ -83,17 +79,11 @@ public class MBGuiGroupFloating extends MBGuiGroup {
guiTop = (int) Utils.getField(GuiContainer.class, currentContainer, "guiTop", "field_147009_r");
} catch (Exception ignored) {
}
- } else if (currentScreen instanceof GuiItemRecipe) {
+ } else {
xSize = ((GuiItemRecipe) currentScreen).xSize;
ySize = ((GuiItemRecipe) currentScreen).ySize;
guiLeft = ((GuiItemRecipe) currentScreen).guiLeft;
guiTop = ((GuiItemRecipe) currentScreen).guiTop;
- } else if (currentScreen instanceof CustomAHGui ||
- NotEnoughUpdates.INSTANCE.manager.auctionManager.customAH.isRenderOverAuctionView()) {
- xSize = NotEnoughUpdates.INSTANCE.manager.auctionManager.customAH.getXSize();
- ySize = NotEnoughUpdates.INSTANCE.manager.auctionManager.customAH.getYSize();
- guiLeft = NotEnoughUpdates.INSTANCE.manager.auctionManager.customAH.guiLeft;
- guiTop = NotEnoughUpdates.INSTANCE.manager.auctionManager.customAH.guiTop;
}
if (xSize <= 0 && ySize <= 0 && guiLeft <= 0 && guiTop <= 0) {