aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/auction/CustomAH.java
diff options
context:
space:
mode:
authorWalker Selby <git@walkerselby.com>2022-10-21 13:25:11 -0700
committerGitHub <noreply@github.com>2022-10-21 15:25:11 -0500
commite4d4a7c4179d2359dcdadcc49b38470c9db873e3 (patch)
tree6d5756eb215fd55cd685b79d3db8d5d15225a7f8 /src/main/java/io/github/moulberry/notenoughupdates/auction/CustomAH.java
parent2f57d3891a25630a41323c029bbe0b0a87d2fd33 (diff)
downloadnotenoughupdates-e4d4a7c4179d2359dcdadcc49b38470c9db873e3.tar.gz
notenoughupdates-e4d4a7c4179d2359dcdadcc49b38470c9db873e3.tar.bz2
notenoughupdates-e4d4a7c4179d2359dcdadcc49b38470c9db873e3.zip
Code Cleanup (#333)
* Remove NeuConfigTutorial.java * Remove NeuTutorial.java * Remove TutorialBase.java * Remove NEU Tutorial Command Initialization from Commands.java * Remove commented-out filter defaults Remove commented-out and replaced rarities String array Remove commented out code for old rendering Invert if statement due to empty if body and used else body * Remove commented-out render Remove commented out divine mentions Remove duplicate additions of Divine rarity * Remove ButtonsCommand.java - Unused, empty, and uninitialized * Remove excessive commented out code of old /neurename * Remove usused initialization Removed old debug console prints * Remove commented out removed options * Remove commented and unused String List Remove commented and unused size settings * Remove unused commented out code * Remove unused commented out code * Remove unused commented code
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/auction/CustomAH.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/auction/CustomAH.java16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/auction/CustomAH.java b/src/main/java/io/github/moulberry/notenoughupdates/auction/CustomAH.java
index 7b4542d0..07ec4a59 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/auction/CustomAH.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/auction/CustomAH.java
@@ -190,8 +190,6 @@ public class CustomAH extends Gui {
private static final int SORT_MODE_LOW = 1;
private static final int SORT_MODE_SOON = 2;
- // private static final String[] rarities = {"COMMON", "UNCOMMON", "RARE", "EPIC",
-// "LEGENDARY", "MYTHIC", "SPECIAL", "VERY SPECIAL", "SUPREME", "DIVINE"};
private static final String[] rarityColours = {
"" + EnumChatFormatting.WHITE,
"" + EnumChatFormatting.GREEN, "" + EnumChatFormatting.BLUE, "" + EnumChatFormatting.DARK_PURPLE,
@@ -264,10 +262,8 @@ public class CustomAH extends Gui {
if (searchField == null || priceField == null) init();
if (System.currentTimeMillis() - lastOpen < 1000) Mouse.setGrabbed(false);
- //sortMode = SORT_MODE_HIGH;
rarityFilter = -1;
filterMyAuctions = false;
- //binFilter = BIN_FILTER_ALL;
enchFilter = ENCH_FILTER_ALL;
dungeonFilter = DUNGEON_FILTER_ALL;
@@ -995,14 +991,6 @@ public class CustomAH extends Gui {
searchField.drawTextBox();
GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);
- /*if(auctionIds.size() == 0 && searchField.getText().length() == 0) {
- drawRect(guiLeft+8, guiTop+17, guiLeft+170, guiTop+107+18*splits,
- new Color(100, 100, 100, 100).getRGB());
-
- FontRenderer fr = Minecraft.getMinecraft().fontRendererObj;
- int strWidth = fr.getStringWidth("Loading items...");
- fr.drawString("Loading items...", guiLeft+(8+170-strWidth)/2, guiTop+(17+107+18*splits)/2, Color.BLACK.getRGB());
- }*/
Minecraft.getMinecraft().getTextureManager().bindTexture(creativeInventoryTabs);
GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);
@@ -1409,9 +1397,7 @@ public class CustomAH extends Gui {
for (String internalname : itemMatches) {
for (String aucid : manager.auctionManager.getAuctionsForInternalname(internalname)) {
APIManager.Auction auc = manager.auctionManager.getAuctionItems().get(aucid);
- if (doesAucMatch(auc)) {
- //matches.add(aucid);
- } else {
+ if (!doesAucMatch(auc)) {
dontMatch.add(aucid);
}
}