[fix] Fixed typo in CoordsLog

This commit is contained in:
Xiaro 2020-11-11 17:58:50 -05:00
parent 7cfcc3c01c
commit a57bb5f191
No known key found for this signature in database
GPG Key ID: 996D265D6E155377
1 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ import net.minecraft.util.math.BlockPos
category = Module.Category.MISC
)
object CoordsLog : Module() {
private val saveOndeath = register(Settings.b("SaveOnDeath", true))
private val saveOnDeath = register(Settings.b("SaveOnDeath", true))
private val autoLog = register(Settings.b("AutoLog", false))
private val delay = register(Settings.integerBuilder("Delay").withValue(15).withRange(1, 60).withStep(1))
@ -32,7 +32,7 @@ object CoordsLog : Module() {
timeout()
}
if (saveOndeath.value) {
if (saveOnDeath.value) {
savedDeath = if (!savedDeath && (mc.player.isDead || mc.player.health <= 0.0f)) {
val deathPoint = logCoordinates("Death - " + InfoCalculator.getServerType())
MessageSendHelper.sendChatMessage("You died at ${deathPoint.x}, ${deathPoint.y}, ${deathPoint.z}")