Lua: Fix float printing

Now prints 0, not 0.000000, etc.
This commit is contained in:
Lion Kortlepel
2021-09-19 12:10:38 +02:00
parent 7dbf859529
commit 701e613990
2 changed files with 5 additions and 3 deletions

View File

@@ -72,7 +72,6 @@ public:
void RegisterEvent(const std::string& EventName, TLuaStateId StateId, const std::string& FunctionName);
template <typename... ArgsT>
[[nodiscard]] std::vector<std::shared_ptr<TLuaResult>> TriggerEvent(const std::string& EventName, TLuaStateId IgnoreId, ArgsT&&... Args) {
beammp_info("TriggerEvent called from: ");
std::unique_lock Lock(mEventsMutex);
if (mEvents.find(EventName) == mEvents.end()) {
return {};