Skip to content

Commit 414581b

Browse files
BaitinqAvanatiker
andauthored
StashLogger: Show the time and date when a stash is found (#466)
* StashLogger: Show the time and date when a stash is found After this patch we now show the date and time at which the "stash" was found. This is information which could be useful for the users to better identify the stash after afk hunting. * Remove unnecessary imports Co-authored-by: Constructor <fractalminds@protonmail.com>
1 parent 85bcf15 commit 414581b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/kotlin/com/lambda/client/module/modules/misc/StashLogger.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ import net.minecraft.tileentity.*
2525
import net.minecraft.util.math.BlockPos
2626
import net.minecraft.util.math.ChunkPos
2727
import net.minecraftforge.fml.common.gameevent.TickEvent
28+
import java.text.SimpleDateFormat
29+
import java.util.*
2830
import kotlin.math.roundToInt
2931

3032
object StashLogger : Module(
@@ -96,7 +98,8 @@ object StashLogger : Module(
9698

9799
if (logToChat) {
98100
val positionString = center.asString()
99-
MessageSendHelper.sendChatMessage("$chatName Found $string at ($positionString) ")
101+
val timeStr = SimpleDateFormat.getDateTimeInstance().format(Calendar.getInstance().time)
102+
MessageSendHelper.sendChatMessage("$chatName Found $string at ($positionString) [$timeStr]")
100103
}
101104

102105
found = true

0 commit comments

Comments
 (0)