Skip to content

Commit 4ac4e4a

Browse files
author
ellomenop
committed
Fix for modifying objects via browser
1 parent 8b232cd commit 4ac4e4a

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/browser.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ do
432432
local function peval(text)
433433
local func = load("return " .. text)
434434
if not func then return nil end
435-
setfenv(func,_G)
435+
envy.setfenv(func,_G)
436436
local ret = table.pack(pcall(func))
437437
if ret.n <= 1 then return end
438438
if not ret[1] then return end

src/main.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
local envy = rom.mods["SGG_Modding-ENVY"]
66
---@module 'SGG_Modding-ENVY-auto'
77
envy.auto()
8+
private.envy = envy
89

910
import('core.lua')
1011
import('browser.lua',nil,envy.globals)

0 commit comments

Comments
 (0)