Skip to content

Commit

Permalink
refactor: cleanup comments and fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
minhperry committed Jun 16, 2024
1 parent 75bbf69 commit b80cde4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main/java/at/hannibal2/skyhanni/features/mining/ForgeGfs.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import at.hannibal2.skyhanni.utils.ChatUtils
import at.hannibal2.skyhanni.utils.ItemUtils
import at.hannibal2.skyhanni.utils.ItemUtils.getInternalNameOrNull
import at.hannibal2.skyhanni.utils.ItemUtils.itemNameWithoutColor
import at.hannibal2.skyhanni.utils.LorenzUtils
import at.hannibal2.skyhanni.utils.NEUInternalName
import at.hannibal2.skyhanni.utils.RegexUtils.matches
import at.hannibal2.skyhanni.utils.repopatterns.RepoPattern
Expand All @@ -34,10 +35,10 @@ object ForgeGfs {
ItemUtils.createSkull(
displayName = "§aGet items from sack",
uuid = "75ea8094-5152-4457-8c23-1ad9b3c176c0",
value = "ewogICJ0aW1lc3RhbXAiIDogMTU5MTMxMDU4NTYwOSwKICAicHJvZmlsZUlkIiA6ICI0MWQzYWJjMmQ3NDk0MDBjOTA5MGQ1NDM0ZDAzODMxYiIsC"
+ "iAgInByb2ZpbGVOYW1lIiA6ICJNZWdha2xvb24iLAogICJzaWduYXR1cmVSZXF1aXJlZCIgOiB0cnVlLAogI"
+ "CJ0ZXh0dXJlcyIgOiB7CiAgICAiU0tJTiIgOiB7CiAgICAgICJ1cmwiIDogImh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3"
+ "RleHR1cmUvODBhMDc3ZTI0OGQxNDI3NzJlYTgwMDg2NGY4YzU3OGI5ZDM2ODg1YjI5ZGFmODM2YjY0YTcwNjg4MmI2ZWMxMCIKICAgIH0KICB9Cn0=",
value = "ewogICJ0aW1lc3RhbXAiIDogMTU5MTMxMDU4NTYwOSwKICAicHJvZmlsZUlkIiA6ICI0MWQzYWJjMmQ3NDk0MDBjOTA5MGQ1NDM0ZDAzODMxYiIsC" +
"iAgInByb2ZpbGVOYW1lIiA6ICJNZWdha2xvb24iLAogICJzaWduYXR1cmVSZXF1aXJlZCIgOiB0cnVlLAogI" +
"CJ0ZXh0dXJlcyIgOiB7CiAgICAiU0tJTiIgOiB7CiAgICAgICJ1cmwiIDogImh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3" +
"RleHR1cmUvODBhMDc3ZTI0OGQxNDI3NzJlYTgwMDg2NGY4YzU3OGI5ZDM2ODg1YjI5ZGFmODM2YjY0YTcwNjg4MmI2ZWMxMCIKICAgIH0KICB9Cn0=",
"§8(from SkyHanni)",
"§7Click here to try to get all of this",
"§7recipe's ingredients from sack."
Expand All @@ -48,11 +49,10 @@ object ForgeGfs {

@SubscribeEvent
fun onInventoryOpen(event: InventoryUpdatedEvent) {
if (!LorenzUtils.inSkyBlock) return
if (!config) return
if (!confirmScreenPattern.matches(event.inventoryName)) return

// Passing 2 filters means that both are true
// showFakeItem = config && confirmScreenPattern.matches(event.inventoryName)
showFakeItem = true
}

Expand Down

0 comments on commit b80cde4

Please sign in to comment.