mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-12-26 15:33:34 +00:00
Merge branch 'main' into components-wheeeee
This commit is contained in:
commit
ddc5f0e117
@ -1244,9 +1244,7 @@ bool Entity::IsSleeping() const {
|
||||
|
||||
|
||||
const NiPoint3& Entity::GetPosition() const {
|
||||
if (!this) return NiPoint3::ZERO;
|
||||
|
||||
auto controllable = GetComponent<ControllablePhysicsComponent>();
|
||||
auto* controllable = GetComponent<ControllablePhysicsComponent>();
|
||||
|
||||
if (controllable != nullptr) {
|
||||
return controllable->GetPosition();
|
||||
|
Loading…
Reference in New Issue
Block a user