Skip to content

Commit

Permalink
fix: fix #123
Browse files Browse the repository at this point in the history
  • Loading branch information
ShrBox committed May 3, 2024
1 parent 62ce3ab commit 6eb6aca
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/legacy/api/SimulatedPlayerAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,7 @@ Local<Value> McClass::spawnSimulatedPlayer(const Arguments& args) {
}
bpos = BlockPos(args[1].toInt(), args[2].toInt(), args[3].toInt()).bottomCenter();
}
if (auto sp = SimulatedPlayer::create(
name,
bpos,
dimid,
ll::service::getMinecraft()->getServerNetworkHandler(),
std::to_string(ll::random_utils::rand<int64>(INT64_MIN, -1))
))
return PlayerClass::newPlayer(sp);
if (auto sp = SimulatedPlayer::create(name, bpos, dimid)) return PlayerClass::newPlayer(sp);
else return Local<Value>();
}
CATCH("Fail in " __FUNCTION__ "!")
Expand Down

0 comments on commit 6eb6aca

Please sign in to comment.