Makes lua file upload work with bigger files and standardizes a few file|null (#82202)

## About The Pull Request
My lua scripts were hitting the topic byte limit, so this makes file
upload of lua scripts able to bypass the topic limit.

## Why It's Good For The Game
Removes arbitrary restriction on how big a lua file can be in bytes.

## Changelog
🆑
admin: Admins can now run lua files bigger than 36 KB by importing them
directly.
/🆑

Co-authored-by: Watermelon914 <3052169-Watermelon914@users.noreply.gitlab.com>
This commit is contained in:
Watermelon914
2024-03-27 00:03:44 +00:00
committed by GitHub
parent 02726be8fe
commit ece026703d
3 changed files with 7 additions and 9 deletions
+1 -1
View File
@@ -233,7 +233,7 @@ GLOBAL_LIST_INIT(circuit_dupe_whitelisted_types, list(
var/txt
switch(option)
if("File")
txt = file2text(input(usr, "Input File") as file|null)
txt = file2text(input(usr, "Input File") as null|file)
if("Direct Input")
txt = input(usr, "Input JSON", "Input JSON") as text|null