Skip to content

Commit

Permalink
Merge branch 'beta' into feature/election-viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
j10a1n15 authored Sep 25, 2024
2 parents dcb4090 + 7c4c488 commit a755d10
Show file tree
Hide file tree
Showing 140 changed files with 1,495 additions and 713 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/illegal-imports.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@

at/hannibal2/skyhanni/ scala.
at/hannibal2/skyhanni/ jline.
at/hannibal2/skyhanni/ io.github.moulberry.notenoughupdates.util.Constants
at/hannibal2/skyhanni/ io.github.moulberry.notenoughupdates.events.SlotClickEvent
at/hannibal2/skyhanni/ io.github.moulberry.notenoughupdates.events.ReplaceItemEvent
at/hannibal2/skyhanni/ io.github.moulberry.notenoughupdates.util.Constants
at/hannibal2/skyhanni/ io.github.moulberry.notenoughupdates.util.Utils
at/hannibal2/skyhanni/ java.util.function.Supplier
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
!.idea/icon.svg
!.idea/dictionaries/default_user.xml
!.idea/scopes/Mixins.xml
!.idea/liveTemplates/SkyHanni.xml
.vscode/
run/
build/
Expand Down
3 changes: 2 additions & 1 deletion .idea/dictionaries/default_user.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

101 changes: 101 additions & 0 deletions .idea/liveTemplates/SkyHanni.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 10 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ plugins {
kotlin("plugin.power-assert")
`maven-publish`
id("moe.nea.shot") version "1.0.0"
id("net.kyori.blossom")
}

val target = ProjectTarget.values().find { it.projectPath == project.path }!!
Expand Down Expand Up @@ -159,9 +160,9 @@ dependencies {
exclude(module = "unspecified")
isTransitive = false
}
// June 3, 2024, 9:30 PM AEST
// https://github.com/NotEnoughUpdates/NotEnoughUpdates/tree/2.3.0
devenvMod("com.github.NotEnoughUpdates:NotEnoughUpdates:2.3.0:all") {
// August 27, 2024, 4:30 PM AEST
// https://github.com/NotEnoughUpdates/NotEnoughUpdates/tree/2.3.3
devenvMod("com.github.NotEnoughUpdates:NotEnoughUpdates:2.3.3:all") {
exclude(module = "unspecified")
isTransitive = false
}
Expand Down Expand Up @@ -312,12 +313,18 @@ if (!MultiVersionStage.activeState.shouldCompile(target)) {
onlyIf { false }
}
}

preprocess {
vars.put("MC", target.minecraftVersion.versionNumber)
vars.put("FORGE", if (target.forgeDep != null) 1 else 0)
vars.put("JAVA", target.minecraftVersion.javaVersion)
patternAnnotation.set("at.hannibal2.skyhanni.utils.compat.Pattern")
}

blossom {
replaceToken("@MOD_VERSION@", version)
}

val sourcesJar by tasks.creating(Jar::class) {
destinationDirectory.set(layout.buildDirectory.dir("badjars"))
archiveClassifier.set("src")
Expand Down
33 changes: 33 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,12 @@
+ Added Transfer Cooldown Prevention. - Cuz_Im_Clicks (https://github.com/hannibal002/SkyHanni/pull/1751)
+ Wait for the transfer cooldown to complete before sending commands like warp/is/hub.
+ Added highlighting for the active Beacon Effect. - Cuz_Im_Clicks (https://github.com/hannibal002/SkyHanni/pull/2546)
+ Added navigation command. - hannibal2 (https://github.com/hannibal002/SkyHanni/pull/2575)
+ Use `/shnavigate <name>` to find interesting locations on your current SkyBlock island by searching for them.
+ Displays a pathfinder to the location.
+ Works with NPCs, points of interest, areas, slayer spots, emissaries, crimson mini-bosses, spots to mine ores, break crops, and kill mobs.
+ Does not yet work with Spider's Den and Dungeon Hub (still needs to be mapped out).
+ Added a message to warp to Winter Island spawn when a Reindrake spawns. - Cuz_Im_Clicks (https://github.com/hannibal002/SkyHanni/pull/2569)

### Improvements

Expand All @@ -162,6 +168,9 @@
+ Some icons in the Mining Event Display now use the texture of the item they represent. - Thunderblade73 (https://github.com/hannibal002/SkyHanni/pull/2425)
+ E.g., Raffle Event -> Raffle Ticket.
+ Changed how Powder Tracker works to account for powder buffs. - Jordyrat + Empa (https://github.com/hannibal002/SkyHanni/pull/2394)
+ Added an option to hide all tooltips inside the Fossil Excavator. - Cuz_Im_Clicks (https://github.com/hannibal002/SkyHanni/pull/2579)
+ Added support for using the Pickobulus ability for the Mineshaft Pity Display. - Empa (https://github.com/hannibal002/SkyHanni/pull/2540)
+ Added Area Navigation support to Glacite Tunnels. - hannibal2 (https://github.com/hannibal002/SkyHanni/pull/2544)

#### Diana Improvements

Expand Down Expand Up @@ -254,6 +263,7 @@
+ In your inventory, hover over the GUI with your mouse, then start typing to search.
+ Improved the performance of pathfinding logic in Area Navigation. - nea (https://github.com/hannibal002/SkyHanni/pull/2537)
+ Added a toggle to force the `en_US` locale for number formatting. - martimavocado (https://github.com/hannibal002/SkyHanni/pull/2563)
+ Queued GfS will now always fall back to a default amount if one is not specified. - Luna (https://github.com/hannibal002/SkyHanni/pull/2584)

### Fixes

Expand Down Expand Up @@ -285,6 +295,7 @@
+ Fixed Mouse Keys not working as Wardrobe Slot Hotkeys. - j10a1n15, ThatGravyBoat (https://github.com/hannibal002/SkyHanni/pull/2506)
+ Fixed Estimated Item Value incorrectly showing all Kuudra armor as starred. - Luna (https://github.com/hannibal002/SkyHanni/pull/2550)
+ Fixed Experiments Profit Tracker & Superpair Data. - ILike2WatchMemes (https://github.com/hannibal002/SkyHanni/pull/2560)
+ Fixed price per unit for Stonk of Stonks auction not working for the bracket you are in. - Thunderblade73 (https://github.com/hannibal002/SkyHanni/pull/2572)

#### Mining Fixes

Expand All @@ -306,6 +317,9 @@
+ Fixed Gemstone Gauntlet item category. - Luna (https://github.com/hannibal002/SkyHanni/pull/2534)
+ Fixed Glacite powder being tracked as Glacite in Corpse Tracker. - Daveed (https://github.com/hannibal002/SkyHanni/pull/2557)
+ Fixed "Mining Commissions Block Color" disabling OptiFine connected textures. - nopo (https://github.com/hannibal002/SkyHanni/pull/2559)
+ Fixed some blocks in the Crystal Hollows being detected as Mithril instead of Hard Stone. - Luna (https://github.com/hannibal002/SkyHanni/pull/2580)
+ Fixed "Mining Commissions Block Color" causing OptiFine connected textures not to connect properly. - nopo (https://github.com/hannibal002/SkyHanni/pull/2577)
+ Fixed the Mineshaft Pity Counter not working in the Great Glacite Lake. - martimavocado (https://github.com/hannibal002/SkyHanni/pull/2565)

#### Scoreboard Fixes

Expand Down Expand Up @@ -374,6 +388,10 @@
+ Fixed two "Catch a Fish" carnival goals not being properly detected from chat. - Luna (https://github.com/hannibal002/SkyHanni/pull/2517)
+ Fixed the bounding box of baby zombies in Zombie Shootout. - j10a1n15 (https://github.com/hannibal002/SkyHanni/pull/2512)

#### Fishing Fixes

+ Fixed error messages while using the Chum Bucket Hider feature. - nea89 (https://github.com/hannibal002/SkyHanni/pull/2587)

#### Misc Fixes

+ Fixed Mayor Detection failing when Special Mayors are in office. - j10a1n15 (https://github.com/hannibal002/SkyHanni/pull/2389)
Expand All @@ -393,6 +411,7 @@
+ Fixed direct GitHub downloads triggering the source checker. - ThatGravyBoat (https://github.com/hannibal002/SkyHanni/pull/2548)
+ Fixed reforge display not working with new mining stats. - hannibal2 (https://github.com/hannibal002/SkyHanni/pull/2555)
+ Fixed Totem of Corruption expiry warning not working in some cases. - Luna (https://github.com/hannibal002/SkyHanni/pull/2554)
+ Fixed a few typos in the config. - rdbt (https://github.com/hannibal002/SkyHanni/pull/2585)

### Technical Details

Expand Down Expand Up @@ -447,6 +466,20 @@
+ Improved handling of unknown stats for ReforgeAPI. - Thunderblade73 (https://github.com/hannibal002/SkyHanni/pull/2562)
+ Added `AreaChangeEvent`. - Empa (https://github.com/hannibal002/SkyHanni/pull/2535)
+ Updated `HandleEvent` to allow `onlyOnIsland` usage for a single island without brackets. - Empa (https://github.com/hannibal002/SkyHanni/pull/2535)
+ Created a Text method to display a paginated list. - CalMWolfs (https://github.com/hannibal002/SkyHanni/pull/2583)
+ Moved existing paged lists in `/shcommands` and `/shremind` to use this.
+ Node Tags filter list in Graph Editor now sorts by nodes per tag. - hannibal2 (https://github.com/hannibal002/SkyHanni/pull/2575)
+ Additional code cleanup around ingredients. - hannibal2 (https://github.com/hannibal002/SkyHanni/pull/2576)
+ Removed duplicate rounding functions. - CalMWolfs (https://github.com/hannibal002/SkyHanni/pull/1931)
+ Added HTTP Request Patching. - CalMWolfs (https://github.com/hannibal002/SkyHanni/pull/2578)
+ Removed references to NEU code, especially code from the Utils class in NEU. - CalMWolfs (https://github.com/hannibal002/SkyHanni/pull/2419)
+ Banned importing `io.github.moulberry.notenoughupdates.util.Utils`. - CalMWolfs (https://github.com/hannibal002/SkyHanni/pull/2419)
+ Added common live templates. - Thunderblade73 (https://github.com/hannibal002/SkyHanni/pull/2463)
+ These can be automatically imported via the plugin "Live Templates Sharing".
+ Created and used primitive recipe and ingredient classes. - CalMWolfs (https://github.com/hannibal002/SkyHanni/pull/2460)
+ These are added as a layer between SkyHanni and NEU so that we are not reliant on NEU functions.
+ Added Blossom Gradle plugin for token replacement in code. - ThatGravyBoat (https://github.com/hannibal002/SkyHanni/pull/2558)
+ `@MOD_VERSION@` is now a token that will be replaced.

### Removed Features

Expand Down
6 changes: 6 additions & 0 deletions docs/FEATURES.md
Original file line number Diff line number Diff line change
Expand Up @@ -1157,6 +1157,7 @@ Use `/sh` or `/skyhanni` to open the SkyHanni config in game.
+ Customizable GUI
+ Option to hide the chat messages
+ While on the Winter Island, show a timer until Jerry's Workshop closes. - hannibal2
+ Added a message to warp to Winter Island spawn when a Reindrake spawns. - Cuz_Im_Clicks (https://github.com/hannibal002/SkyHanni/pull/2569)
+ **Custom Text Box** - CalMWolfs
+ Write fancy text into a gui element to show on your screen at all time
+ Supports color codes
Expand Down Expand Up @@ -1375,6 +1376,11 @@ Use `/sh` or `/skyhanni` to open the SkyHanni config in game.
+ Get a title warning when entering an area.
+ See area names in the world.
+ Does not yet work with Spider's Den and Dungeon Hub. Only partial support for Farming Islands and the Rift.
+ Added navigation command. - hannibal2 (https://github.com/hannibal002/SkyHanni/pull/2575)
+ Use `/shnavigate <name>` to find interesting locations on your current SkyBlock island by searching for them.
+ Displays a pathfinder to the location.
+ Works with NPCs, points of interest, areas, slayer spots, emissaries, crimson mini-bosses, spots to mine ores, break crops, and kill mobs.
+ Does not yet work with Spider's Den and Dungeon Hub (still needs to be mapped out).
+ Added `/gfs` to fix a broken Piggy Bank. - j10a1n15 (https://github.com/hannibal002/SkyHanni/pull/2150)
+ Added Broodmother spawn alert, countdown and stage change messages. - MTOnline (https://github.com/hannibal002/SkyHanni/pull/2325)
+ Countdown will not show until a spawning stage change is observed, and may be off by a few seconds.
Expand Down
3 changes: 2 additions & 1 deletion root.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import com.replaymod.gradle.preprocess.Node

plugins {
id("dev.deftu.gradle.preprocess") version "0.6.1"
id("net.kyori.blossom") version "1.3.2" apply false
id("gg.essential.loom") version "1.6.+" apply false
kotlin("jvm") version "2.0.0" apply false
kotlin("plugin.power-assert") version "2.0.0" apply false
Expand All @@ -12,7 +13,7 @@ plugins {

allprojects {
group = "at.hannibal2.skyhanni"
version = "0.27.Beta.11"
version = "0.27.Beta.12"
}

preprocess {
Expand Down
1 change: 1 addition & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ pluginManagement {
maven("https://repo.nea.moe/releases")
maven("https://repo.sk1er.club/repository/maven-releases/")
maven("https://maven.deftu.dev/releases")
maven("https://maven.teamresourceful.com/repository/maven-private/") // Blossom
maven("https://jitpack.io") {
content {
includeGroupByRegex("(com|io)\\.github\\..*")
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/at/hannibal2/skyhanni/SkyHanniMod.kt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import org.apache.logging.log4j.Logger
clientSideOnly = true,
useMetadata = true,
guiFactory = "at.hannibal2.skyhanni.config.ConfigGuiForgeInterop",
version = "0.27.Beta.11",
version = "@MOD_VERSION@",
)
class SkyHanniMod {

Expand Down
2 changes: 0 additions & 2 deletions src/main/java/at/hannibal2/skyhanni/api/GetFromSackAPI.kt
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,6 @@ object GetFromSackAPI {
// The last parameter could be "2*3". This does not support ending with ")", but it is good enough
val argsNull = !args.last().last().isDigit()
val arguments = if (argsNull) {
if (!config.defaultGFS) return CommandResult.WRONG_ARGUMENT to null

args + config.defaultAmountGFS.toString()
} else args

Expand Down
Loading

0 comments on commit a755d10

Please sign in to comment.