summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLaG1924 <lag1924@gmail.com>2021-06-26 02:34:24 +0200
committerLaG1924 <lag1924@gmail.com>2021-06-26 02:34:24 +0200
commitc009065e1c877d87624a3e72de6f06259cf745ac (patch)
tree52c495975450379373d34fa8c91b44dc6dc02470 /src
parentMerge pull request #59 from LaG1924/ftr/github-actions (diff)
downloadAltCraft-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.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 {