From 907f3c8c35c226acc82d80bc807b5d849a325ff9 Mon Sep 17 00:00:00 2001 From: wed150 Date: Sat, 13 Jun 2026 23:51:07 +0800 Subject: [PATCH] reflector: standard include use standard include instead of INCLUDE-ALL Signed-off-by: wed150 --- src/Command.cpp | 8 ++++++++ src/Entry.cpp | 11 +++++++++++ src/Entry.h | 3 +++ src/Global.h | 8 +++++--- src/InventoryCheck.cpp | 19 +++++++++++++++++++ 5 files changed, 46 insertions(+), 3 deletions(-) diff --git a/src/Command.cpp b/src/Command.cpp index 47c75f5..ffcefbf 100644 --- a/src/Command.cpp +++ b/src/Command.cpp @@ -1,5 +1,13 @@ #include "Global.h" +#include "mc/server/commands/CommandRegistry.h" +#include "mc/server/commands/CommandOutput.h" + +#include "ll/api/command/CommandHandle.h" +#include "ll/api/service/Bedrock.h" + +#include "gmlib/mc/world/actor/Actor.h" + void RegisterCommand() { auto& cmd = ll::command::CommandRegistrar::getInstance().getOrCreateCommand( "inventorycheck", diff --git a/src/Entry.cpp b/src/Entry.cpp index 0f66cfc..8951307 100644 --- a/src/Entry.cpp +++ b/src/Entry.cpp @@ -2,6 +2,17 @@ #include "Global.h" #include "Language.h" +#include "ll/api/Config.h" +#include "ll/api/Versions.h" +#include "ll/api/mod/RegisterHelper.h" + +#include "gmlib/gm/i18n/LangI18n.h" +#include "gmlib/gm/i18n/JsonI18n.h" + +#include "gmlib/gm/data/UserCache.h" +#include "ll/api/service/Bedrock.h" +#include "ll/api/service/PlayerInfo.h" + ll::Logger logger(MOD_NAME); namespace InventoryCheck { diff --git a/src/Entry.h b/src/Entry.h index f052298..af7486b 100644 --- a/src/Entry.h +++ b/src/Entry.h @@ -3,6 +3,9 @@ #include "Config.h" #include "Global.h" +#include "gmlib/gm/i18n/LangI18n.h" + +#include namespace InventoryCheck { diff --git a/src/Global.h b/src/Global.h index 1c6efdc..3fb8c3c 100644 --- a/src/Global.h +++ b/src/Global.h @@ -2,12 +2,14 @@ #include -#include +#include "mc/world/actor/player/Player.h" + +#include +#include #define MOD_NAME "InventoryCheck" -#define TARGET_PROTOCOL 686 +#define TARGET_PROTOCOL 944 -extern ll::Logger logger; extern std::string tr(std::string const& key, std::vector const& data = {}); diff --git a/src/InventoryCheck.cpp b/src/InventoryCheck.cpp index e609413..d77d3d2 100644 --- a/src/InventoryCheck.cpp +++ b/src/InventoryCheck.cpp @@ -1,4 +1,23 @@ #include "Global.h" +#include "Entry.h" + +#include +#include + +#include "mc/world/level/Level.h" +#include "mc/world/level/storage/DBStorage.h" +#include "mc/world/actor/player/PlayerListEntry.h" + +#include "ll/api/service/Bedrock.h" +#include "ll/api/io/FileUtils.h" + +#include "ll/api/form/ModalForm.h" +#include "ll/api/form/SimpleForm.h" +#include "ll/api/form/CustomForm.h" + +#include "gmlib/mc/world/actor/OfflinePlayer.h" + +#include bool saveInventory(Player& player) { auto& pl = static_cast(player);