mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-11 19:14:05 +09:00
TIL lua's loadstring is now simply 'load'
Former-commit-id: 2e2ee60f28eb3cbdeb9da7877eba4d0774590f87 Former-commit-id: 81c4274951d08267adb5380d5f4fa351ace25fff
This commit is contained in:
@@ -6,9 +6,10 @@
|
||||
fs.run = function(p)
|
||||
local f = fs.open(p, "r")
|
||||
local s = f.readAll()
|
||||
fs.dostring(s)
|
||||
load(s)()
|
||||
end
|
||||
|
||||
_G.loadstring = _G.load
|
||||
|
||||
--------------
|
||||
-- HEXUTILS --
|
||||
|
||||
Reference in New Issue
Block a user