diff --git a/src/endstone_core/command/command_wrapper.cpp b/src/endstone_core/command/command_wrapper.cpp index f2e0e4d9c..41c265380 100644 --- a/src/endstone_core/command/command_wrapper.cpp +++ b/src/endstone_core/command/command_wrapper.cpp @@ -14,7 +14,6 @@ #include "endstone/detail/command/command_wrapper.h" -#include #include #include "bedrock/server/commands/command_origin_loader.h" @@ -59,10 +58,10 @@ bool CommandWrapper::execute(CommandSender &sender, const std::vector CommandWrapper::getCommandOrigin(CommandSender &s if (const auto *actor = static_cast(sender.asActor()); actor) { CompoundTag tag; { - tag.putByte("OriginType", static_cast(CommandOriginType::Player)); + tag.putByte("OriginType", static_cast(CommandOriginType::Entity)); tag.putInt64("EntityId", actor->getActor().getOrCreateUniqueID().raw_id); } return CommandOriginLoader::load(tag, static_cast(actor->getActor().getLevel()));