Fix translations
[no changelog]
This commit is contained in:
@@ -17,11 +17,12 @@ import moe.nea.firmament.features.FirmamentFeature
|
||||
import moe.nea.firmament.gui.config.ManagedConfig
|
||||
|
||||
object DianaWaypoints : FirmamentFeature {
|
||||
override val identifier get() = "diana-waypoints"
|
||||
override val identifier get() = "diana"
|
||||
override val config get() = TConfig
|
||||
|
||||
object TConfig : ManagedConfig(identifier) {
|
||||
val ancestralSpadeSolver by toggle("ancestral-spade") { false }
|
||||
val ancestralSpadeSolver by toggle("ancestral-spade") { true }
|
||||
val nearbyWaypoints by toggle("nearby-waypoints") { true }
|
||||
}
|
||||
|
||||
override fun onLoad() {
|
||||
|
||||
@@ -63,6 +63,7 @@ object NearbyBurrowsSolver {
|
||||
}
|
||||
|
||||
fun onParticles(event: ParticleSpawnEvent) {
|
||||
if (!DianaWaypoints.TConfig.nearbyWaypoints) return
|
||||
|
||||
val position: BlockPos = event.position.toBlockPos().down()
|
||||
|
||||
@@ -106,6 +107,7 @@ object NearbyBurrowsSolver {
|
||||
}
|
||||
|
||||
fun onRender(event: WorldRenderLastEvent) {
|
||||
if (!DianaWaypoints.TConfig.nearbyWaypoints) return
|
||||
renderInWorld(event) {
|
||||
for ((location, burrow) in burrows) {
|
||||
when (burrow) {
|
||||
@@ -126,6 +128,8 @@ object NearbyBurrowsSolver {
|
||||
}
|
||||
|
||||
fun onBlockClick(blockPos: BlockPos) {
|
||||
if (!DianaWaypoints.TConfig.nearbyWaypoints) return
|
||||
burrows.remove(blockPos)
|
||||
lastBlockClick = blockPos
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user