Skip to content

Commit

Permalink
Merge pull request #2 from ellomenop/main
Browse files Browse the repository at this point in the history
Fix for modifying objects via browser
  • Loading branch information
AndreLouisIssa authored May 23, 2024
2 parents 8b232cd + 684c657 commit b4c27a9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed

- Fixed issue that prevented modifying values within the Object Browser
- Fixed error while sorting mixed-type keys in the Object Browser

## [1.0.2] - 2024-05-23

### Changed
Expand Down
4 changes: 2 additions & 2 deletions src/browser.lua
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ do
for k in iter(data) do
table.insert(order,k)
end
table.sort(order)
table.sort(order, function(a,b) return tostring(a) < tostring(b) end)
for _,k in ipairs(order) do
local v = data[k]
for _,sd in public.vararg(entrify(k,v,ed)) do
Expand Down Expand Up @@ -432,7 +432,7 @@ do
local function peval(text)
local func = load("return " .. text)
if not func then return nil end
setfenv(func,_G)
envy.setfenv(func,_G)
local ret = table.pack(pcall(func))
if ret.n <= 1 then return end
if not ret[1] then return end
Expand Down
1 change: 1 addition & 0 deletions src/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
local envy = rom.mods["SGG_Modding-ENVY"]
---@module 'SGG_Modding-ENVY-auto'
envy.auto()
private.envy = envy

import('core.lua')
import('browser.lua',nil,envy.globals)
Expand Down
2 changes: 1 addition & 1 deletion thunderstore.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ schemaVersion = "0.0.1"
[package]
namespace = "SGG_Modding"
name = "SeerSuite"
versionNumber = "1.0.2"
versionNumber = "1.0.3"
description = "Defines debug tools such as an Object Browser and Script Console."
websiteUrl = "https://github.com/SGG-Modding/SeerSuite"
containsNsfwContent = false
Expand Down

0 comments on commit b4c27a9

Please sign in to comment.