Skip to content

Commit cd2c348

Browse files
committed
fix: processConsolePipCmd #208
1 parent 869ceff commit cd2c348

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/legacy/api/GuiAPI.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#include "ll/api/service/ServerInfo.h"
1010
#include "mc/world/actor/player/Player.h"
1111

12-
#include <cstdlib>
1312
#include <iostream>
1413

1514
//////////////////// Class Definition ////////////////////

src/legacy/main/PythonHelper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ bool processPythonDebugEngine(const std::string& cmd) {
222222

223223
bool processConsolePipCmd(const std::string& cmd) {
224224
#ifdef LEGACY_SCRIPT_ENGINE_BACKEND_PYTHON
225-
if (ll::string_utils::splitByPattern(cmd, " ")[0] == "pip") {
225+
if (cmd == "pip" || cmd.starts_with("pip ")) {
226226
PythonHelper::executePipCommand(cmd);
227227
return false;
228228
} else return true;

0 commit comments

Comments
 (0)