Skip to content

Commit 8f8af0d

Browse files
committed
fixed script.saveData / loadData
1 parent 36f82cd commit 8f8af0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PluginsFolder/protoplug/include/core/script.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ end
2929
-- - right before the script is recompiled, to keep custom data across compilations.
3030
-- @treturn string the data to be saved
3131
-- @function script.saveData
32-
script_saveData = script.saveData
3332

3433
--- Load script data.
3534
-- Override this function to load any custom data.
@@ -41,7 +40,6 @@ script_saveData = script.saveData
4140
-- - right after the script is recompiled, to keep custom data across compilations.
4241
-- @tparam string data the data to be loaded
4342
-- @function script.loadData
44-
script_loadData = script.loadData
4543

4644

4745
--- Load shared libraries.
@@ -116,6 +114,8 @@ function script_init()
116114
v()
117115
end
118116
end
117+
script_saveData = script.saveData
118+
script_loadData = script.loadData
119119
end
120120

121121
-- add handler to repaint gui after recompiling

0 commit comments

Comments
 (0)