diff options
author | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2019-02-18 05:03:05 +0100 |
---|---|---|
committer | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2019-04-21 12:55:48 +0200 |
commit | 93ab4aa89d8d81e5dd042201b75165f8db4968bd (patch) | |
tree | a17aa61e6051e8c3e40dcdcc589d5daa24450d4b /src/Plugin.cpp | |
parent | Changed luajit to lua5.1 (diff) | |
download | AltCraft-93ab4aa89d8d81e5dd042201b75165f8db4968bd.tar AltCraft-93ab4aa89d8d81e5dd042201b75165f8db4968bd.tar.gz AltCraft-93ab4aa89d8d81e5dd042201b75165f8db4968bd.tar.bz2 AltCraft-93ab4aa89d8d81e5dd042201b75165f8db4968bd.tar.lz AltCraft-93ab4aa89d8d81e5dd042201b75165f8db4968bd.tar.xz AltCraft-93ab4aa89d8d81e5dd042201b75165f8db4968bd.tar.zst AltCraft-93ab4aa89d8d81e5dd042201b75165f8db4968bd.zip |
Diffstat (limited to 'src/Plugin.cpp')
-rw-r--r-- | src/Plugin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Plugin.cpp b/src/Plugin.cpp index 40ff82f..41c690c 100644 --- a/src/Plugin.cpp +++ b/src/Plugin.cpp @@ -20,7 +20,7 @@ sol::state lua; namespace PluginApi { - void RegisterPlugin(sol::table &self, sol::table &plugin) { + void RegisterPlugin(sol::table self, sol::table plugin) { Plugin nativePlugin { plugin["name"].get_or<std::string>("75"), plugin["displayName"].get_or<std::string>(""), @@ -34,7 +34,7 @@ namespace PluginApi { LOG(INFO) << "Loaded plugin " << (!nativePlugin.displayName.empty() ? nativePlugin.displayName : nativePlugin.name); } - void LogWarning(sol::table &self, std::string text) { + void LogWarning(sol::table self, std::string text) { LOG(WARNING) << text; } |