From eb8a96099565844940b2d2614768406af5697239 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal002@users.noreply.github.com> Date: Tue, 4 Jul 2023 12:45:16 +0200 Subject: Empty List (#289) Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- .../java/at/hannibal2/skyhanni/features/bingo/BingoCardDisplay.kt | 2 +- .../java/at/hannibal2/skyhanni/features/bingo/BingoNextStepHelper.kt | 4 ++-- .../java/at/hannibal2/skyhanni/features/bingo/MinionCraftHelper.kt | 2 +- .../skyhanni/features/event/diana/InquisitorWaypointShare.kt | 2 +- .../java/at/hannibal2/skyhanni/features/garden/AnitaMedalProfit.kt | 2 +- .../at/hannibal2/skyhanni/features/garden/FarmingFortuneDisplay.kt | 2 +- .../at/hannibal2/skyhanni/features/garden/GardenNextJacobContest.kt | 4 ++-- .../hannibal2/skyhanni/features/garden/composter/ComposterDisplay.kt | 2 +- .../hannibal2/skyhanni/features/garden/composter/ComposterOverlay.kt | 4 ++-- .../skyhanni/features/garden/contest/JacobContestFFNeededDisplay.kt | 2 +- .../skyhanni/features/garden/contest/JacobContestTimeNeeded.kt | 2 +- .../at/hannibal2/skyhanni/features/garden/farming/CropMoneyDisplay.kt | 2 +- .../at/hannibal2/skyhanni/features/garden/farming/CropSpeedMeter.kt | 4 ++-- .../hannibal2/skyhanni/features/garden/farming/DicerRngDropCounter.kt | 2 +- .../hannibal2/skyhanni/features/garden/farming/EliteFarmingWeight.kt | 2 +- .../hannibal2/skyhanni/features/garden/farming/FarmingArmorDrops.kt | 2 +- .../hannibal2/skyhanni/features/garden/farming/GardenBestCropTime.kt | 2 +- .../skyhanni/features/garden/farming/GardenCropMilestoneDisplay.kt | 4 ++-- .../skyhanni/features/garden/inventory/SkyMartCopperPrice.kt | 2 +- .../skyhanni/features/garden/visitor/GardenVisitorDropStatistics.kt | 2 +- .../skyhanni/features/garden/visitor/GardenVisitorFeatures.kt | 2 +- src/main/java/at/hannibal2/skyhanni/features/inventory/SackDisplay.kt | 2 +- .../java/at/hannibal2/skyhanni/features/misc/CityProjectFeatures.kt | 2 +- .../java/at/hannibal2/skyhanni/features/misc/FrozenTreasureTracker.kt | 2 +- src/main/java/at/hannibal2/skyhanni/features/misc/GhostCounter.kt | 2 +- .../at/hannibal2/skyhanni/features/misc/NonGodPotEffectDisplay.kt | 2 +- .../java/at/hannibal2/skyhanni/features/misc/QuickModMenuSwitch.kt | 2 +- .../at/hannibal2/skyhanni/features/misc/items/EstimatedItemValue.kt | 2 +- .../features/nether/reputationhelper/CrimsonIsleReputationHelper.kt | 2 +- .../java/at/hannibal2/skyhanni/features/rift/CruxTalismanDisplay.kt | 2 +- .../java/at/hannibal2/skyhanni/features/rift/HighlightRiftGuide.kt | 2 +- src/main/java/at/hannibal2/skyhanni/features/rift/RiftTimer.kt | 2 +- .../at/hannibal2/skyhanni/features/slayer/SlayerItemProfitTracker.kt | 2 +- 33 files changed, 38 insertions(+), 38 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features') diff --git a/src/main/java/at/hannibal2/skyhanni/features/bingo/BingoCardDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/bingo/BingoCardDisplay.kt index 8d26638f4..e650d71fb 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/bingo/BingoCardDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/bingo/BingoCardDisplay.kt @@ -27,7 +27,7 @@ class BingoCardDisplay { private val MAX_COMMUNITY_GOALS = 5 private var tick = 0 - private var display = listOf() + private var display = emptyList() private val goalCompletePattern = "§6§lBINGO GOAL COMPLETE! §r§e(?.*)".toPattern() init { diff --git a/src/main/java/at/hannibal2/skyhanni/features/bingo/BingoNextStepHelper.kt b/src/main/java/at/hannibal2/skyhanni/features/bingo/BingoNextStepHelper.kt index db50fb671..12f74a59f 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/bingo/BingoNextStepHelper.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/bingo/BingoNextStepHelper.kt @@ -35,8 +35,8 @@ class BingoNextStepHelper { companion object { private val finalSteps = mutableListOf() - private var currentSteps = listOf() - var currentHelp = listOf() + private var currentSteps = emptyList() + var currentHelp = emptyList() fun command() { updateResult(true) diff --git a/src/main/java/at/hannibal2/skyhanni/features/bingo/MinionCraftHelper.kt b/src/main/java/at/hannibal2/skyhanni/features/bingo/MinionCraftHelper.kt index 3083f6414..ca73f8557 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/bingo/MinionCraftHelper.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/bingo/MinionCraftHelper.kt @@ -24,7 +24,7 @@ import net.minecraftforge.fml.common.gameevent.TickEvent class MinionCraftHelper { private var minionNamePattern = "(?.*) Minion (?.*)".toPattern() private var tick = 0 - private var display = listOf() + private var display = emptyList() private var hasMinionInInventory = false private var hasItemsForMinion = false private val tierOneMinions = mutableListOf() diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/diana/InquisitorWaypointShare.kt b/src/main/java/at/hannibal2/skyhanni/features/event/diana/InquisitorWaypointShare.kt index 40ff00a12..ffa73b345 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/event/diana/InquisitorWaypointShare.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/event/diana/InquisitorWaypointShare.kt @@ -35,7 +35,7 @@ object InquisitorWaypointShare { private var inquisitor = -1 private var lastInquisitor = -1 private var lastShareTime = 0L - private var inquisitorsNearby = listOf() + private var inquisitorsNearby = emptyList() private var tick = 0 private val logger = LorenzLogger("diana/waypoints") diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/AnitaMedalProfit.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/AnitaMedalProfit.kt index 78eb2bcaa..28b7797a5 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/AnitaMedalProfit.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/AnitaMedalProfit.kt @@ -19,7 +19,7 @@ import net.minecraftforge.fml.common.eventhandler.SubscribeEvent class AnitaMedalProfit { private val config get() = SkyHanniMod.feature.garden - private var display = listOf>() + private var display = emptyList>() companion object { var inInventory = false diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/FarmingFortuneDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/FarmingFortuneDisplay.kt index fb6e76bb0..43dd23adb 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/FarmingFortuneDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/FarmingFortuneDisplay.kt @@ -30,7 +30,7 @@ import kotlin.math.log10 class FarmingFortuneDisplay { private val tabFortunePattern = " Farming Fortune: §r§6☘(\\d+)".toRegex() - private var display = listOf>() + private var display = emptyList>() private var accessoryProgressDisplay = "" private var lastToolSwitch: Long = 0 diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenNextJacobContest.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenNextJacobContest.kt index 7feaf7ca4..dfe17b1c0 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenNextJacobContest.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenNextJacobContest.kt @@ -28,8 +28,8 @@ import javax.swing.JOptionPane import javax.swing.UIManager class GardenNextJacobContest { - private var display = listOf() - private var simpleDisplay = listOf() + private var display = emptyList() + private var simpleDisplay = emptyList() private var tick = 0 private var contests = mutableMapOf() private var inCalendar = false diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/composter/ComposterDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/composter/ComposterDisplay.kt index 2ddcc390e..db4e5d4c8 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/composter/ComposterDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/composter/ComposterDisplay.kt @@ -19,7 +19,7 @@ import kotlin.time.DurationUnit class ComposterDisplay { private val config get() = SkyHanniMod.feature.garden private val hidden get() = GardenAPI.config - private var display = listOf>() + private var display = emptyList>() private var composterEmptyTime: Duration? = null private var tabListData by ComposterAPI::tabListData diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/composter/ComposterOverlay.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/composter/ComposterOverlay.kt index 5c67ea67e..e1574efc0 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/composter/ComposterOverlay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/composter/ComposterOverlay.kt @@ -37,8 +37,8 @@ class ComposterOverlay { private var fuelFactors: Map = emptyMap() private val config get() = SkyHanniMod.feature.garden - private var organicMatterDisplay = listOf>() - private var fuelExtraDisplay = listOf>() + private var organicMatterDisplay = emptyList>() + private var fuelExtraDisplay = emptyList>() private var currentTimeType = TimeType.HOUR private var inComposter = false diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/contest/JacobContestFFNeededDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/contest/JacobContestFFNeededDisplay.kt index 25cd81252..09f7bde19 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/contest/JacobContestFFNeededDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/contest/JacobContestFFNeededDisplay.kt @@ -20,7 +20,7 @@ import kotlin.math.ceil class JacobContestFFNeededDisplay { private val config get() = SkyHanniMod.feature.garden - private var display = listOf>() + private var display = emptyList>() private var lastToolTipTime = 0L private val cache = mutableMapOf>>() diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/contest/JacobContestTimeNeeded.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/contest/JacobContestTimeNeeded.kt index f8792d8f2..a45378994 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/contest/JacobContestTimeNeeded.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/contest/JacobContestTimeNeeded.kt @@ -21,7 +21,7 @@ import net.minecraftforge.fml.common.eventhandler.SubscribeEvent class JacobContestTimeNeeded { private val config get() = SkyHanniMod.feature.garden - private var display = listOf>() + private var display = emptyList>() private var currentBracket = ContestBracket.GOLD @SubscribeEvent(priority = EventPriority.LOW) diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/CropMoneyDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/CropMoneyDisplay.kt index 4d3c99ece..32ce790ab 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/CropMoneyDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/CropMoneyDisplay.kt @@ -38,7 +38,7 @@ object CropMoneyDisplay { update() } - private var display = listOf>() + private var display = emptyList>() private val config get() = SkyHanniMod.feature.garden private var tick = 0 private var loaded = false diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/CropSpeedMeter.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/CropSpeedMeter.kt index 70e6791b2..e65aa351e 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/CropSpeedMeter.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/CropSpeedMeter.kt @@ -15,11 +15,11 @@ import net.minecraftforge.fml.common.eventhandler.SubscribeEvent import net.minecraftforge.fml.common.gameevent.TickEvent class CropSpeedMeter { - private var display = listOf() + private var display = emptyList() private var currentCrop: CropType? = null private var currentBlocks = 0 private var tick = 0 - private var snapshot = listOf() + private var snapshot = emptyList() @SubscribeEvent fun onBlockBreak(event: CropClickEvent) { diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/DicerRngDropCounter.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/DicerRngDropCounter.kt index ad9ad9737..38bd8e0cd 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/DicerRngDropCounter.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/DicerRngDropCounter.kt @@ -11,7 +11,7 @@ import at.hannibal2.skyhanni.utils.RenderUtils.renderStrings import net.minecraftforge.fml.common.eventhandler.SubscribeEvent class DicerRngDropCounter { - private var display = listOf() + private var display = emptyList() private val drops = mutableMapOf>() private val itemDrops = mutableListOf() private val config get() = SkyHanniMod.feature.garden diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/EliteFarmingWeight.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/EliteFarmingWeight.kt index 37c92258e..497c25f0e 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/EliteFarmingWeight.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/EliteFarmingWeight.kt @@ -74,7 +74,7 @@ class EliteFarmingWeight { private val config get() = SkyHanniMod.feature.garden private val localCounter = mutableMapOf() - private var display = listOf() + private var display = emptyList() private var profileId = "" private var lastLeaderboardUpdate = 0L private var apiError = false diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/FarmingArmorDrops.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/FarmingArmorDrops.kt index e3db57fc8..e43ffa3a8 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/FarmingArmorDrops.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/FarmingArmorDrops.kt @@ -15,7 +15,7 @@ import net.minecraftforge.fml.common.eventhandler.SubscribeEvent import net.minecraftforge.fml.common.gameevent.TickEvent class FarmingArmorDrops { - private var display = listOf() + private var display = emptyList() private val drops = mutableMapOf() private var hasArmor = false private var tick = 0 diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenBestCropTime.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenBestCropTime.kt index d722658b1..ad9f98e6e 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenBestCropTime.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenBestCropTime.kt @@ -14,7 +14,7 @@ import at.hannibal2.skyhanni.utils.TimeUnit import at.hannibal2.skyhanni.utils.TimeUtils class GardenBestCropTime { - var display = listOf>() + var display = emptyList>() companion object { private val config get() = SkyHanniMod.feature.garden diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCropMilestoneDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCropMilestoneDisplay.kt index b4e7846d9..26064b3ab 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCropMilestoneDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCropMilestoneDisplay.kt @@ -25,8 +25,8 @@ import net.minecraftforge.fml.common.eventhandler.SubscribeEvent import java.util.* object GardenCropMilestoneDisplay { - private var progressDisplay = listOf>() - private var mushroomCowPerkDisplay = listOf>() + private var progressDisplay = emptyList>() + private var mushroomCowPerkDisplay = emptyList>() private val cultivatingData = mutableMapOf() private val config get() = SkyHanniMod.feature.garden private val bestCropTime = GardenBestCropTime() diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/inventory/SkyMartCopperPrice.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/inventory/SkyMartCopperPrice.kt index 26e73be87..131e5d484 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/inventory/SkyMartCopperPrice.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/inventory/SkyMartCopperPrice.kt @@ -18,7 +18,7 @@ import net.minecraftforge.fml.common.eventhandler.SubscribeEvent class SkyMartCopperPrice { private val pattern = "§c(?.*) Copper".toPattern() - private var display = listOf>() + private var display = emptyList>() private val config get() = SkyHanniMod.feature.garden companion object { diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorDropStatistics.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorDropStatistics.kt index 74793f803..bbd3fce29 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorDropStatistics.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorDropStatistics.kt @@ -20,7 +20,7 @@ import net.minecraftforge.fml.common.eventhandler.SubscribeEvent object GardenVisitorDropStatistics { private val config get() = SkyHanniMod.feature.garden.visitorDropsStatistics - private var display = listOf>() + private var display = emptyList>() private var acceptedVisitors = 0 var deniedVisitors = 0 diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt index f7fedd18c..f2e1c07df 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt @@ -43,7 +43,7 @@ private val config get() = SkyHanniMod.feature.garden class GardenVisitorFeatures { private val visitors = mutableMapOf() - private var display = listOf>() + private var display = emptyList>() private var lastClickedNpc = 0 private var tick = 0 private val newVisitorArrivedMessage = ".* §r§ehas arrived on your §r§bGarden§r§e!".toPattern() diff --git a/src/main/java/at/hannibal2/skyhanni/features/inventory/SackDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/inventory/SackDisplay.kt index acb7d6b67..23d58b9eb 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/inventory/SackDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/SackDisplay.kt @@ -33,7 +33,7 @@ class SackDisplay { } private val config get() = SkyHanniMod.feature.inventory.sackDisplay - private var display = listOf>() + private var display = emptyList>() private val sackItem = mutableMapOf() private val runeItem = mutableMapOf() private val gemstoneItem = mutableMapOf() diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/CityProjectFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/CityProjectFeatures.kt index d8d18ec6d..1610b3ef4 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/CityProjectFeatures.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/CityProjectFeatures.kt @@ -26,7 +26,7 @@ import net.minecraftforge.fml.common.eventhandler.SubscribeEvent import net.minecraftforge.fml.common.gameevent.TickEvent class CityProjectFeatures { - private var display = listOf>() + private var display = emptyList>() private var inInventory = false private var tick = 0 private var lastReminderSend = 0L diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/FrozenTreasureTracker.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/FrozenTreasureTracker.kt index dfb4b6973..dbc241584 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/FrozenTreasureTracker.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/FrozenTreasureTracker.kt @@ -22,7 +22,7 @@ import kotlin.concurrent.fixedRateTimer class FrozenTreasureTracker { private val config get() = SkyHanniMod.feature.misc.frozenTreasureTracker - private var display = listOf>() + private var display = emptyList>() private var treasuresMined = 0 private var compactProcs = 0 private var estimatedIce = 0L diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/GhostCounter.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/GhostCounter.kt index 39ff0fd06..265c819dd 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/GhostCounter.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/GhostCounter.kt @@ -52,7 +52,7 @@ object GhostCounter { val config get() = SkyHanniMod.feature.ghostCounter val hidden get() = ProfileStorageData.profileSpecific?.ghostCounter - private var display = listOf>() + private var display = emptyList>() private var ghostCounterV3File = File("." + File.separator + "config" + File.separator + "ChatTriggers" + File.separator + "modules" + File.separator + "GhostCounterV3" + File.separator + ".persistantData.json") private val skillXPPattern = ".*§3\\+(?.*).*\\((?.*)\\/(?.*)\\).*".toPattern() private val killComboExpiredPattern = "§cYour Kill Combo has expired! You reached a (?.*) Kill Combo!".toPattern() diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/NonGodPotEffectDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/NonGodPotEffectDisplay.kt index fabff46ba..b57e363d8 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/NonGodPotEffectDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/NonGodPotEffectDisplay.kt @@ -21,7 +21,7 @@ class NonGodPotEffectDisplay { private val config get() = SkyHanniMod.feature.misc private var checkFooter = false private val effectDuration = mutableMapOf() - private var display = listOf() + private var display = emptyList() private var lastTick = 0L enum class NonGodPotEffect(val apiName: String, val displayName: String, val isMixin: Boolean = false) { diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/QuickModMenuSwitch.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/QuickModMenuSwitch.kt index a33cda9d1..205314dce 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/QuickModMenuSwitch.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/QuickModMenuSwitch.kt @@ -16,7 +16,7 @@ import net.minecraftforge.fml.common.gameevent.TickEvent object QuickModMenuSwitch { private val config get() = SkyHanniMod.feature.misc.quickModMenuSwitch - private var display = listOf>() + private var display = emptyList>() private var tick = 0 private var latestGuiPath = "" diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValue.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValue.kt index 2fbc0eca2..683934235 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValue.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValue.kt @@ -45,7 +45,7 @@ import net.minecraftforge.fml.common.eventhandler.SubscribeEvent object EstimatedItemValue { private val config get() = SkyHanniMod.feature.misc - private var display = listOf>() + private var display = emptyList>() private val cache = mutableMapOf>>() private var lastToolTipTime = 0L diff --git a/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/CrimsonIsleReputationHelper.kt b/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/CrimsonIsleReputationHelper.kt index e5acfeab1..a23623a82 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/CrimsonIsleReputationHelper.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/CrimsonIsleReputationHelper.kt @@ -28,7 +28,7 @@ class CrimsonIsleReputationHelper(skyHanniMod: SkyHanniMod) { var repoData: JsonObject = JsonObject() var factionType = FactionType.NONE - private var display = listOf>() + private var display = emptyList>() private var dirty = true private var tick = 0 diff --git a/src/main/java/at/hannibal2/skyhanni/features/rift/CruxTalismanDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/rift/CruxTalismanDisplay.kt index 9932c19c0..73ebd0e3b 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/rift/CruxTalismanDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/rift/CruxTalismanDisplay.kt @@ -19,7 +19,7 @@ object CruxTalismanDisplay { private val config get() = SkyHanniMod.feature.rift.cruxTalisman private val partialName = "CRUX_TALISMAN" - private var display = listOf>() + private var display = emptyList>() private val displayLine = mutableListOf() private val bonusesLine = mutableListOf() private val progressPattern = diff --git a/src/main/java/at/hannibal2/skyhanni/features/rift/HighlightRiftGuide.kt b/src/main/java/at/hannibal2/skyhanni/features/rift/HighlightRiftGuide.kt index 45b2daeb9..4335077a5 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/rift/HighlightRiftGuide.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/rift/HighlightRiftGuide.kt @@ -14,7 +14,7 @@ import net.minecraftforge.fml.common.eventhandler.SubscribeEvent class HighlightRiftGuide { private val config get() = SkyHanniMod.feature.rift private var inInventory = false - private var highlightedItems = listOf() + private var highlightedItems = emptyList() @SubscribeEvent fun onInventoryOpen(event: InventoryOpenEvent) { diff --git a/src/main/java/at/hannibal2/skyhanni/features/rift/RiftTimer.kt b/src/main/java/at/hannibal2/skyhanni/features/rift/RiftTimer.kt index fb43a5faf..6bffa8a80 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/rift/RiftTimer.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/rift/RiftTimer.kt @@ -12,7 +12,7 @@ import net.minecraftforge.fml.common.eventhandler.SubscribeEvent class RiftTimer { private val config get() = SkyHanniMod.feature.rift.timer - private var display = listOf() + private var display = emptyList() private var maxTime = 0L private var latestTime = 0L private val changes = mutableMapOf() diff --git a/src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerItemProfitTracker.kt b/src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerItemProfitTracker.kt index 9faa3511b..125e08f83 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerItemProfitTracker.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerItemProfitTracker.kt @@ -33,7 +33,7 @@ object SlayerItemProfitTracker { private var collectedCache = CacheBuilder.newBuilder().expireAfterWrite(2, TimeUnit.SECONDS).build() private var itemLogCategory = "" - private var display = listOf>() + private var display = emptyList>() private val logger = LorenzLogger("slayer/item_profit_tracker") private var inventoryOpen = false private var lastClickDelay = 0L -- cgit