summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2021-06-26 15:01:06 +0200
committerGitHub <noreply@github.com>2021-06-26 15:01:06 +0200
commit687917cb52e36ad96a1164344f883315b616c233 (patch)
treecf45715f8bbf65a154045d9a6e249a6fcc735355 /src
parentMerge pull request #59 from LaG1924/ftr/github-actions (diff)
parentMoved font downloading to CMake (diff)
downloadAltCraft-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 'src')
-rw-r--r--src/Plugin.cpp1
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 {