diff options
author | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2021-06-26 15:01:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-26 15:01:06 +0200 |
commit | 687917cb52e36ad96a1164344f883315b616c233 (patch) | |
tree | cf45715f8bbf65a154045d9a6e249a6fcc735355 /src | |
parent | Merge pull request #59 from LaG1924/ftr/github-actions (diff) | |
parent | Moved font downloading to CMake (diff) | |
download | AltCraft-687917cb52e36ad96a1164344f883315b616c233.tar AltCraft-687917cb52e36ad96a1164344f883315b616c233.tar.gz AltCraft-687917cb52e36ad96a1164344f883315b616c233.tar.bz2 AltCraft-687917cb52e36ad96a1164344f883315b616c233.tar.lz AltCraft-687917cb52e36ad96a1164344f883315b616c233.tar.xz AltCraft-687917cb52e36ad96a1164344f883315b616c233.tar.zst AltCraft-687917cb52e36ad96a1164344f883315b616c233.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Plugin.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Plugin.cpp b/src/Plugin.cpp index 5134aa6..ce995fc 100644 --- a/src/Plugin.cpp +++ b/src/Plugin.cpp @@ -301,6 +301,7 @@ void PluginSystem::CallOnChangeState(std::string newState) { void PluginSystem::CallOnTick(double deltaTime) { OPTICK_EVENT(); + lua.safe_script("collectgarbage('collect')"); for (Plugin& plugin : plugins) { if (plugin.onTick && plugin.errors < 10) try { |