Add logger error for invalid type paramater
All checks were successful
Deploy datapack to dev / Build (push) Successful in 7s

This commit is contained in:
themodernhakr 2025-03-11 15:32:46 -05:00
parent 8d6d9e5a0c
commit b3e1769ca9

View File

@ -1,5 +1,8 @@
@lazy @lazy
function logger(type, caller, message) { function logger(type, caller, message) {
if ($type > 6 || $type < 1) {
say "The log type requested does not exist. Please find the caller ($caller) and resolve this issue.";
}
$tmp_logger = false; $tmp_logger = false;
$tmp_type = $type; $tmp_type = $type;
if ($temp_type >= $log_level) { $tmp_logger = $type; } if ($temp_type >= $log_level) { $tmp_logger = $type; }