diff --git a/src/DeathMessage.cpp b/src/DeathMessage.cpp index 1e3ef3b..7791ca9 100644 --- a/src/DeathMessage.cpp +++ b/src/DeathMessage.cpp @@ -87,8 +87,6 @@ DeathMessageResult makeDeathMessage( } if (!DeathMessages::Entry::getInstance().isResourceI18nLoaded) { res.first=tr(res.first, res.second); - logger->info("原消息name为 {}", res.first); - res.second = {}; } return res; diff --git a/src/Hooks.cpp b/src/Hooks.cpp index 9536344..bba230b 100644 --- a/src/Hooks.cpp +++ b/src/Hooks.cpp @@ -79,16 +79,10 @@ LL_AUTO_TYPE_INSTANCE_HOOK( HookPriority::Lowest, ActorDamageSource, &ActorDamageSource::$getDeathMessage, - - DeathMessageResult, - std::string a1, Actor* a2 ) { - - - auto originl = origin(a1, a2); auto res = translateDeathMessage(originl, a1, a2, this); return res; @@ -113,7 +107,6 @@ LL_AUTO_TYPE_INSTANCE_HOOK( HookPriority::Lowest, ActorDamageByBlockSource, &ActorDamageByBlockSource::$getDeathMessage, - DeathMessageResult, std::string a1, Actor* a2 @@ -128,8 +121,6 @@ LL_AUTO_TYPE_INSTANCE_HOOK( HookPriority::Lowest, ActorDamageByChildActorSource, &ActorDamageByChildActorSource::$getDeathMessage, - - DeathMessageResult, std::string a1, Actor* a2