Skip to content

Commit

Permalink
Merge branch 'main' of github.com:engsr6982/LeviTPSystem
Browse files Browse the repository at this point in the history
  • Loading branch information
engsr6982 committed Oct 8, 2024
2 parents e666666 + 07ba464 commit 1f69b66
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/tpa/gui/TpaForm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

#include "event/TpaRequestSendEvent.h"
#include "ll/api/event/EventBus.h"

#include <ll/api/mod/ModManagerRegistry.h>

namespace tps::tpa {

Expand All @@ -38,6 +38,9 @@ TpaForm::TpaForm(Player& player, TpaType type) {
setContent(modules::Moneys::getInstance().getMoneySpendTipStr(player, Config::cfg.Tpa.Money));

level->forEachPlayer([type, this](Player& target) {

if (ll::mod::ModManagerRegistry::getInstance().hasMod("vanish") && target.isInvisible()) return true; // vanish

appendButton(target.getRealName(), [&target, type](Player& sender) {
try {
auto req = TpaRequestPool::getInstance().makeRequest(sender, target, type);
Expand Down

0 comments on commit 1f69b66

Please sign in to comment.