diff options
author | hannibal2 <24389977+hannibal002@users.noreply.github.com> | 2023-07-04 12:45:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-04 12:45:16 +0200 |
commit | eb8a96099565844940b2d2614768406af5697239 (patch) | |
tree | 53d7564415534c8095dafb8710ffc00dd95c9af2 /src/main/java | |
parent | e7b44785e637efa9c4aa9c8c97e3f499d7bfc76b (diff) | |
download | skyhanni-eb8a96099565844940b2d2614768406af5697239.tar.gz skyhanni-eb8a96099565844940b2d2614768406af5697239.tar.bz2 skyhanni-eb8a96099565844940b2d2614768406af5697239.zip |
Empty List (#289)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java')
35 files changed, 40 insertions, 40 deletions
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<String>() + private var display = emptyList<String>() private val goalCompletePattern = "§6§lBINGO GOAL COMPLETE! §r§e(?<name>.*)".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<NextStep>() - private var currentSteps = listOf<NextStep>() - var currentHelp = listOf<String>() + private var currentSteps = emptyList<NextStep>() + var currentHelp = emptyList<String>() 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 = "(?<name>.*) Minion (?<number>.*)".toPattern() private var tick = 0 - private var display = listOf<String>() + private var display = emptyList<String>() private var hasMinionInInventory = false private var hasItemsForMinion = false private val tierOneMinions = mutableListOf<String>() 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<EntityOtherPlayerMP>() + private var inquisitorsNearby = emptyList<EntityOtherPlayerMP>() 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<List<Any>>() + private var display = emptyList<List<Any>>() 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<List<Any>>() + private var display = emptyList<List<Any>>() 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<Any>() - private var simpleDisplay = listOf<String>() + private var display = emptyList<Any>() + private var simpleDisplay = emptyList<String>() private var tick = 0 private var contests = mutableMapOf<Long, FarmingContest>() 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<List<Any>>() + private var display = emptyList<List<Any>>() 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<String, Double> = emptyMap() private val config get() = SkyHanniMod.feature.garden - private var organicMatterDisplay = listOf<List<Any>>() - private var fuelExtraDisplay = listOf<List<Any>>() + private var organicMatterDisplay = emptyList<List<Any>>() + private var fuelExtraDisplay = emptyList<List<Any>>() 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<List<Any>>() + private var display = emptyList<List<Any>>() private var lastToolTipTime = 0L private val cache = mutableMapOf<ItemStack, List<List<Any>>>() 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<List<Any>>() + private var display = emptyList<List<Any>>() 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<List<Any>>() + private var display = emptyList<List<Any>>() 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<String>() + private var display = emptyList<String>() private var currentCrop: CropType? = null private var currentBlocks = 0 private var tick = 0 - private var snapshot = listOf<String>() + private var snapshot = emptyList<String>() @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<String>() + private var display = emptyList<String>() private val drops = mutableMapOf<CropType, MutableMap<DropRarity, Int>>() private val itemDrops = mutableListOf<ItemDrop>() 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<CropType, Long>() - private var display = listOf<String>() + private var display = emptyList<String>() 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<String>() + private var display = emptyList<String>() private val drops = mutableMapOf<ArmorDropType, Int>() 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<List<Any>>() + var display = emptyList<List<Any>>() 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<List<Any>>() - private var mushroomCowPerkDisplay = listOf<List<Any>>() + private var progressDisplay = emptyList<List<Any>>() + private var mushroomCowPerkDisplay = emptyList<List<Any>>() private val cultivatingData = mutableMapOf<CropType, Long>() 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(?<amount>.*) Copper".toPattern() - private var display = listOf<List<Any>>() + private var display = emptyList<List<Any>>() 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<List<Any>>() + private var display = emptyList<List<Any>>() 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<String, Visitor>() - private var display = listOf<List<Any>>() + private var display = emptyList<List<Any>>() 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<List<Any>>() + private var display = emptyList<List<Any>>() private val sackItem = mutableMapOf<String, Item>() private val runeItem = mutableMapOf<String, Rune>() private val gemstoneItem = mutableMapOf<String, Gemstone>() 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<List<Any>>() + private var display = emptyList<List<Any>>() 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<List<Any>>() + private var display = emptyList<List<Any>>() 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<List<Any>>() + private var display = emptyList<List<Any>>() private var ghostCounterV3File = File("." + File.separator + "config" + File.separator + "ChatTriggers" + File.separator + "modules" + File.separator + "GhostCounterV3" + File.separator + ".persistantData.json") private val skillXPPattern = ".*§3\\+(?<gained>.*).*\\((?<total>.*)\\/(?<current>.*)\\).*".toPattern() private val killComboExpiredPattern = "§cYour Kill Combo has expired! You reached a (?<combo>.*) 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<NonGodPotEffect, Long>() - private var display = listOf<String>() + private var display = emptyList<String>() 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<List<Any>>() + private var display = emptyList<List<Any>>() 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<List<Any>>() + private var display = emptyList<List<Any>>() private val cache = mutableMapOf<ItemStack, List<List<Any>>>() 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<List<Any>>() + private var display = emptyList<List<Any>>() 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<List<Any>>() + private var display = emptyList<List<Any>>() private val displayLine = mutableListOf<Crux>() private val bonusesLine = mutableListOf<String>() 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<Int>() + private var highlightedItems = emptyList<Int>() @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<String>() + private var display = emptyList<String>() private var maxTime = 0L private var latestTime = 0L private val changes = mutableMapOf<Long, String>() 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<Int, Unit>() private var itemLogCategory = "" - private var display = listOf<List<Any>>() + private var display = emptyList<List<Any>>() private val logger = LorenzLogger("slayer/item_profit_tracker") private var inventoryOpen = false private var lastClickDelay = 0L diff --git a/src/main/java/at/hannibal2/skyhanni/test/SkyHanniTestCommand.kt b/src/main/java/at/hannibal2/skyhanni/test/SkyHanniTestCommand.kt index d10fc49f3..d7b1b0029 100644 --- a/src/main/java/at/hannibal2/skyhanni/test/SkyHanniTestCommand.kt +++ b/src/main/java/at/hannibal2/skyhanni/test/SkyHanniTestCommand.kt @@ -20,7 +20,7 @@ class SkyHanniTestCommand { companion object { var displayLine = "" - var displayList = listOf<List<Any>>() + var displayList = emptyList<List<Any>>() var a = 1.0 var b = 60.0 diff --git a/src/main/java/at/hannibal2/skyhanni/utils/TabListData.kt b/src/main/java/at/hannibal2/skyhanni/utils/TabListData.kt index 3b309cccc..fc5a9d727 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/TabListData.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/TabListData.kt @@ -16,7 +16,7 @@ import java.util.* class TabListData { companion object { - private var cache = listOf<String>() + private var cache = emptyList<String>() // TODO replace with TabListUpdateEvent fun getTabList() = cache |