Fix tellraw issue and cleanup storages
All checks were successful
Deploy datapack to dev / Build (push) Successful in 7s
All checks were successful
Deploy datapack to dev / Build (push) Successful in 7s
This commit is contained in:
parent
915988215d
commit
350824a31f
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user