Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix some bugs #1634

Merged
merged 2 commits into from
Mar 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/mc/platform/UUID.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class UUID {

LLNDAPI static mce::UUID random();

[[nodiscard]] inline mce::UUID fromStringHash(std::string_view sv) {
[[nodiscard]] inline static mce::UUID fromStringHash(std::string_view sv) {
return {ll::hash_utils::doHash(sv), ll::hash_utils::doHash2(sv)};
}

Expand Down
2 changes: 1 addition & 1 deletion src/mc/server/SimulatedPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ bool SimulatedPlayer::simulateDestroyLookAt(float handLength) {
return simulateDestroyBlock(hitResult.mBlock, (ScriptModuleMinecraft::ScriptFacing)hitResult.mFacing);
}

::SimulatedPlayer* tryGetFromEntity(::EntityContext& entity, bool includeRemoved) {
::SimulatedPlayer* SimulatedPlayer::tryGetFromEntity(::EntityContext& entity, bool includeRemoved) {
auto result = static_cast<SimulatedPlayer*>(Player::tryGetFromEntity(entity, includeRemoved));
if (result && result->isSimulated()) {
return result;
Expand Down
Loading