diff options
author | ThatGravyBoat <ThatGravyBoat@users.noreply.github.com> | 2021-07-11 21:28:26 +0000 |
---|---|---|
committer | GitHub Action <actions@github.com> | 2021-07-11 21:28:26 +0000 |
commit | e616a0910bdf7f4540f2814a35c1b7eefa9cd59d (patch) | |
tree | e1ec5d961ef3a0b2337f9794176b3fac3ae299d2 /src/main/java/com/thatgravyboat/skyblockhud/tracker | |
parent | 3a1917c8a0af4157cc1e6d5f3986e89377f245d8 (diff) | |
download | SkyblockHud-Death-Defied-e616a0910bdf7f4540f2814a35c1b7eefa9cd59d.tar.gz SkyblockHud-Death-Defied-e616a0910bdf7f4540f2814a35c1b7eefa9cd59d.tar.bz2 SkyblockHud-Death-Defied-e616a0910bdf7f4540f2814a35c1b7eefa9cd59d.zip |
Prettified Code!
Diffstat (limited to 'src/main/java/com/thatgravyboat/skyblockhud/tracker')
-rw-r--r-- | src/main/java/com/thatgravyboat/skyblockhud/tracker/TrackerHandler.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/com/thatgravyboat/skyblockhud/tracker/TrackerHandler.java b/src/main/java/com/thatgravyboat/skyblockhud/tracker/TrackerHandler.java index f1862d6..c40924a 100644 --- a/src/main/java/com/thatgravyboat/skyblockhud/tracker/TrackerHandler.java +++ b/src/main/java/com/thatgravyboat/skyblockhud/tracker/TrackerHandler.java @@ -6,6 +6,7 @@ import com.thatgravyboat.skyblockhud.core.config.Position; import com.thatgravyboat.skyblockhud.location.LocationHandler; import com.thatgravyboat.skyblockhud.location.Locations; import com.thatgravyboat.skyblockhud.seasons.SeasonDateHandler; +import java.util.*; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.Gui; import net.minecraft.client.renderer.GlStateManager; @@ -15,8 +16,6 @@ import net.minecraft.item.ItemStack; import net.minecraftforge.client.event.RenderGameOverlayEvent; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; -import java.util.*; - public class TrackerHandler { public static class TrackerData { @@ -90,7 +89,7 @@ public class TrackerHandler { Map<String, ItemStack> tracker = tracked.dropTrackers.get(tracked.getDropId(SeasonDateHandler.getCurrentEvent())); if (tracker != null) { - Position pos = null;// SkyblockHud.config.trackers.trackerPosition; + Position pos = null; // SkyblockHud.config.trackers.trackerPosition; int startPos = pos.getAbsX(event.resolution, (tracker.size() >= 6 ? 120 : tracker.size() * 20)); int y = pos.getAbsY(event.resolution, (int) (10 + Math.ceil(tracker.size() / 5d) * 20)); |