From 6abe37819dc3f40a9e32573a9e03c97b5c11d5fc Mon Sep 17 00:00:00 2001 From: Baitinq Date: Tue, 17 Jan 2023 23:29:09 +0100 Subject: [PATCH 1/2] 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. --- .../com/lambda/client/module/modules/misc/StashLogger.kt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/com/lambda/client/module/modules/misc/StashLogger.kt b/src/main/kotlin/com/lambda/client/module/modules/misc/StashLogger.kt index cefd60fd3..47ea4658d 100644 --- a/src/main/kotlin/com/lambda/client/module/modules/misc/StashLogger.kt +++ b/src/main/kotlin/com/lambda/client/module/modules/misc/StashLogger.kt @@ -25,6 +25,11 @@ import net.minecraft.tileentity.* import net.minecraft.util.math.BlockPos import net.minecraft.util.math.ChunkPos import net.minecraftforge.fml.common.gameevent.TickEvent +import java.text.SimpleDateFormat +import java.util.* +import kotlin.collections.ArrayList +import kotlin.collections.HashSet +import kotlin.collections.LinkedHashMap import kotlin.math.roundToInt object StashLogger : Module( @@ -96,7 +101,8 @@ object StashLogger : Module( if (logToChat) { val positionString = center.asString() - MessageSendHelper.sendChatMessage("$chatName Found $string at ($positionString) ") + val timeStr = SimpleDateFormat.getDateTimeInstance().format(Calendar.getInstance().time) + MessageSendHelper.sendChatMessage("$chatName Found $string at ($positionString) [$timeStr]") } found = true From ae5e91ad5d67500969ce1e2f39a488264797f58c Mon Sep 17 00:00:00 2001 From: Constructor Date: Wed, 18 Jan 2023 01:32:27 +0100 Subject: [PATCH 2/2] Remove unnecessary imports --- .../com/lambda/client/module/modules/misc/StashLogger.kt | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/main/kotlin/com/lambda/client/module/modules/misc/StashLogger.kt b/src/main/kotlin/com/lambda/client/module/modules/misc/StashLogger.kt index 47ea4658d..042e5684f 100644 --- a/src/main/kotlin/com/lambda/client/module/modules/misc/StashLogger.kt +++ b/src/main/kotlin/com/lambda/client/module/modules/misc/StashLogger.kt @@ -27,9 +27,6 @@ import net.minecraft.util.math.ChunkPos import net.minecraftforge.fml.common.gameevent.TickEvent import java.text.SimpleDateFormat import java.util.* -import kotlin.collections.ArrayList -import kotlin.collections.HashSet -import kotlin.collections.LinkedHashMap import kotlin.math.roundToInt object StashLogger : Module(