rename changeGUI to updateDisplay and add id check

This commit is contained in:
kwaroran
2024-07-29 01:15:25 +09:00
parent fe5e3f7ff3
commit 5b110ae632

View File

@@ -191,7 +191,10 @@ export async function runLua(code:string, arg:{
console.log(JSON.parse(value))
})
luaEngine.global.set('updateGUI', () => {
luaEngine.global.set('reloadDisplay', (id:string) => {
if(!LuaSafeIds.has(id)){
return
}
ReloadGUIPointer.set(get(ReloadGUIPointer) + 1)
})