From 350824a31f570eb35fc79e9716f43d27f3aa3ddf Mon Sep 17 00:00:00 2001 From: themodernhakr Date: Fri, 28 Mar 2025 17:45:52 -0500 Subject: [PATCH] Fix tellraw issue and cleanup storages --- src/logger.jmc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/logger.jmc b/src/logger.jmc index 00b9eac..5a400f1 100644 --- a/src/logger.jmc +++ b/src/logger.jmc @@ -36,6 +36,9 @@ function messagePrinter(name, caller, message) { return 0; } } + ::tmp.string.del(); + ::tmp.sub.del(); + ::tmp.message.del(); } @lazy @@ -53,9 +56,11 @@ function logger(type, caller, message, body) { messagePrinter($type, $caller, $message); $isBody = $body; - if ($isBody) { - tellraw @a $body; - } + ::tmp.body = $body; + execute run { + tellraw @a $(body); + } with ::tmp; + ::tmp.body.del(); } }