From 9651eaafedf89e9c42aef0db3450cf963e755fd9 Mon Sep 17 00:00:00 2001 From: qingyu <62042544+dreamguxiang@users.noreply.github.com> Date: Thu, 31 Mar 2022 13:01:31 +0800 Subject: [PATCH] fix bugs --- CHANGELOG.txt | 38 +++---------------------------- LiteLoader/Main/BuiltinBugFix.cpp | 5 +++- 2 files changed, 7 insertions(+), 36 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 9f3e404ba0..8f80ec4077 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,37 +1,5 @@ -## [New features] - -- Add packet filler auto complete -- Modify llse pl.talkAs, add pl.talkTo -- Add callback param to llse command.setup -- Add auto delay setup dynamic command -- Add some NBT APIs -- Add SynchedActorData APIs -- Add addon update support in AddonsHelper -- Add auto fix Addon List File -- Addon Command support match without color, #298 -- Add simple fuzzy matching in addons command, #298 -- Add isOperator API -- Add mc.setMaxPlayers(num) -- Add wsc.connectAsync - ## [Bug fixes] -- Fix `ll list` -- Fix "Fix abnormal items", fix warning -- Fix logger error after exception -- Fix broadcast crash -- Add check in "Fix move view crash" -- Fix sendTextTalkPacket and add target param -- Fix origin.type #301 -- Fix dynamic command register before server started -- Fix DynamicCommand::updateAvailableCommands crash -- Fix _runcmd crash -- Fix Addons Helper, #223 -- Fix Addons Command and support remove by index -- Fix llse getSoftEnumNames, #315 -- Fix unable to reload LLSE plugin, #316 -- MobHurtEvent Add MagicDamage, #313 -- Try fix crash in LLSE WebSocket onError callback -- Fix Schedule -- Fix LLSE TimeTaskSystem -- Fix dynamic command crash, #304, #283 +- Fix 0tick schedule repeat #324 +- Fix Scoreboard::getScore #229 +- Fix server startup time, #322 diff --git a/LiteLoader/Main/BuiltinBugFix.cpp b/LiteLoader/Main/BuiltinBugFix.cpp index 85fa422810..1a98a3455c 100644 --- a/LiteLoader/Main/BuiltinBugFix.cpp +++ b/LiteLoader/Main/BuiltinBugFix.cpp @@ -68,7 +68,10 @@ TClasslessInstanceHook(__int64, "?LogIPSupport@RakPeerHelper@@AEAAXXZ") else { original(this); - if (num == 2) Logger("Server").info("Done (" + fmt::format("{:.1f}", (endTime - startTime) * 1.0 / 1000) + "s)! For help, type \"help\" or \"?\""); + if (num == 2) { + endTime = clock(); + Logger("Server").info("Done (" + fmt::format("{:.1f}", (endTime - startTime) * 1.0 / 1000) + "s)! For help, type \"help\" or \"?\""); + } return 1; } }