diff options
author | LaG1924 <lag1924@gmail.com> | 2021-06-26 02:34:24 +0200 |
---|---|---|
committer | LaG1924 <lag1924@gmail.com> | 2021-06-26 02:34:24 +0200 |
commit | c009065e1c877d87624a3e72de6f06259cf745ac (patch) | |
tree | 52c495975450379373d34fa8c91b44dc6dc02470 /src | |
parent | Merge pull request #59 from LaG1924/ftr/github-actions (diff) | |
download | AltCraft-c009065e1c877d87624a3e72de6f06259cf745ac.tar AltCraft-c009065e1c877d87624a3e72de6f06259cf745ac.tar.gz AltCraft-c009065e1c877d87624a3e72de6f06259cf745ac.tar.bz2 AltCraft-c009065e1c877d87624a3e72de6f06259cf745ac.tar.lz AltCraft-c009065e1c877d87624a3e72de6f06259cf745ac.tar.xz AltCraft-c009065e1c877d87624a3e72de6f06259cf745ac.tar.zst AltCraft-c009065e1c877d87624a3e72de6f06259cf745ac.zip |
Diffstat (limited to 'src')
-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 { |