diff --git a/.luacheckrc b/.luacheckrc index 670c843258..3829c33024 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -22,7 +22,7 @@ read_globals = { "ValueNoise", "ValueNoiseMap", string = {fields = {"split", "trim"}}, - table = {fields = {"copy", "copy_with_metatables", "getn", "indexof", "keyof", "insert_all"}}, + table = {fields = {"copy", "copy_with_metatables", "getn", "indexof", "keyof", "insert_all","shuffle"}}, math = {fields = {"hypot", "round"}}, } diff --git a/builtin/common/misc_helpers.lua b/builtin/common/misc_helpers.lua index e28a10d940..e698a6a416 100644 --- a/builtin/common/misc_helpers.lua +++ b/builtin/common/misc_helpers.lua @@ -120,10 +120,7 @@ end function dump(value, indent) indent = indent or "\t" - assert( - type(indent) == "string", - "dump()'s second argument should be a string or nil, to dump multiple things use dump({a, b})." - ) + assert(type(indent) == "string", "dump()'s second argument should be a string or nil.") local newline = indent == "" and "" or "\n" diff --git a/doc/lua_api.md b/doc/lua_api.md index aee3552b7a..2bbeb879f4 100644 --- a/doc/lua_api.md +++ b/doc/lua_api.md @@ -4317,10 +4317,6 @@ Helper functions * `tool_capabilities`: Tool capabilities table of the item * `time_from_last_punch`: time in seconds since last punch action * `wear`: Amount of wear the item starts with (default: 0) -* `core.file_exists(path)` - * Returns true if a file exists - * Use if you only want to check if a file exists, don't use to check if you can open it (example: you can check if a schematic exists before loading it) -