Skip to content

Commit b773dc8

Browse files
committed
cleanup
1 parent f84360f commit b773dc8

File tree

3 files changed

+13
-17
lines changed

3 files changed

+13
-17
lines changed

src/main/kotlin/com/lambda/config/configurations/ConfigLoader.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import com.lambda.config.Configuration
2121
import com.lambda.core.Loadable
2222

2323
object ConfigLoader: Loadable {
24-
override val priority = 0
2524
override fun load(): String {
2625
Configuration.configurations.forEach {
2726
it.tryLoad()

src/main/kotlin/com/lambda/module/modules/combat/AutoTotem.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ object AutoTotem : Module(
4242
description = "Swaps the your off-hand item to a totem",
4343
tag = ModuleTag.COMBAT,
4444
) {
45-
private val log by setting("Log Message", true).group(Group.General)
4645
private val always by setting("Always", true, "Always attempt to keep a totem in offhand").group(Group.General)
4746
private val ignoreWhenHolding by setting("Ignore When Holding", false, "Ignore swapping to offhand when already holding a totem").group(Group.General)
4847
private val minimumHealth by setting("Min Health", 10, 6..36, 1, "Set the minimum health threshold to swap", unit = " half-hearts") { !always }.group(Group.General)

src/main/kotlin/com/lambda/util/EntityUtils.kt

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,8 @@ import com.lambda.util.DynamicReflectionSerializer.remappedName
2121
import com.lambda.util.math.MathUtils.floorToInt
2222
import com.lambda.util.reflections.scanResult
2323
import io.github.classgraph.ClassInfo
24-
import io.github.classgraph.ClassInfoList
2524
import net.minecraft.block.entity.BlockEntity
2625
import net.minecraft.entity.Entity
27-
import net.minecraft.entity.EntityType
2826
import net.minecraft.util.math.BlockPos
2927
import kotlin.jvm.java
3028

@@ -33,26 +31,26 @@ object EntityUtils {
3331
.getSubclasses(Entity::class.java)
3432
.filter { !it.isAbstract && it.name.startsWith("net.minecraft") }
3533

36-
val blockEntityMap = createBlockEntityNameMap()
3734
val playerEntityMap = createEntityNameMap("net.minecraft.client.network.")
38-
val bossEntityMap = createEntityNameMap("net.minecraft.entity.boss.")
39-
val decorationEntityMap = createEntityNameMap("net.minecraft.entity.decoration.")
4035
val mobEntityMap = createEntityNameMap("net.minecraft.entity.mob.")
4136
val passiveEntityMap = createEntityNameMap("net.minecraft.entity.passive.")
42-
val projectileEntityMap = createEntityNameMap("net.minecraft.entity.projectile.")
4337
val vehicleEntityMap = createEntityNameMap("net.minecraft.entity.vehicle.")
38+
val projectileEntityMap = createEntityNameMap("net.minecraft.entity.projectile.")
39+
val bossEntityMap = createEntityNameMap("net.minecraft.entity.boss.")
40+
val decorationEntityMap = createEntityNameMap("net.minecraft.entity.decoration.")
41+
val blockEntityMap = createBlockEntityNameMap()
4442
val miscEntityMap = createEntityNameMap("net.minecraft.entity.", strictDir = true)
4543

4644
enum class EntityGroup(val nameToDisplayNameMap: Map<String, String>) {
47-
Player(createEntityNameMap("net.minecraft.client.network.")),
48-
Mob(createEntityNameMap("net.minecraft.entity.mob.")),
49-
Passive(createEntityNameMap("net.minecraft.entity.passive.")),
50-
Vehicle(createEntityNameMap("net.minecraft.entity.vehicle.")),
51-
Projectile(createEntityNameMap("net.minecraft.entity.projectile.")),
52-
Boss(createEntityNameMap("net.minecraft.entity.boss.")),
53-
Decoration(createEntityNameMap("net.minecraft.entity.decoration.")),
54-
Block(createBlockEntityNameMap()),
55-
Misc(createEntityNameMap("net.minecraft.entity.", strictDir = true))
45+
Player(playerEntityMap),
46+
Mob(mobEntityMap),
47+
Passive(passiveEntityMap),
48+
Vehicle(vehicleEntityMap),
49+
Projectile(projectileEntityMap),
50+
Boss(bossEntityMap),
51+
Decoration(decorationEntityMap),
52+
Block(blockEntityMap),
53+
Misc(miscEntityMap)
5654
}
5755

5856
val Entity.entityGroup get() = entityGroup()

0 commit comments

Comments
 (0)