mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-11-14 04:07:09 +00:00
A couple of small improvements to CraftOS
- Make window.reposition's argument validation a little more strict. Previously it would accept `window.reposition(x, y, width)` (no height argument), just not act upon it. - Use select instead of table.unpack within `pastebin run`. - Use `parallel.waitForAny` instead of `waitForAll` within the dance program. - Pipe the entire help file into `textutils.pagedPrint`, rather than doing it line by line. - Remove bytecode loading disabling from bios.lua. This never worked correctly, and serves little purpose as LuaJ is not vulnerable to such exploits.
This commit is contained in:
@@ -18,9 +18,6 @@ if _VERSION == "Lua 5.1" then
|
||||
if env ~= nil and type( env) ~= "table" then
|
||||
error( "bad argument #4 (expected table, got " .. type( env ) .. ")", 2 )
|
||||
end
|
||||
if mode ~= nil and mode ~= "t" then
|
||||
error( "Binary chunk loading prohibited", 2 )
|
||||
end
|
||||
local ok, p1, p2 = pcall( function()
|
||||
if type(x) == "string" then
|
||||
local result, err = nativeloadstring( x, name )
|
||||
|
||||
Reference in New Issue
Block a user