diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2022-07-11 00:56:25 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@outlook.com> | 2022-07-19 23:33:09 +0200 |
commit | 284f54ed81186d3122b994db7395e870703efb4f (patch) | |
tree | 51a4b5c4a7e9fdde460c84117ea8f9ea6ed97393 /src/Items/ItemBoat.h | |
parent | Move LineBlockTracer into Physics (diff) | |
download | cuberite-Megumin.tar cuberite-Megumin.tar.gz cuberite-Megumin.tar.bz2 cuberite-Megumin.tar.lz cuberite-Megumin.tar.xz cuberite-Megumin.tar.zst cuberite-Megumin.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Items/ItemBoat.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Items/ItemBoat.h b/src/Items/ItemBoat.h index 4fc041787..62d6f546e 100644 --- a/src/Items/ItemBoat.h +++ b/src/Items/ItemBoat.h @@ -2,7 +2,7 @@ #pragma once #include "../Entities/Boat.h" -#include "../LineBlockTracer.h" +#include "../Physics/Tracers/LineBlockTracer.h" @@ -38,7 +38,7 @@ public: // Find the actual placement position by tracing line of sight until non-air block: class cCallbacks: - public cBlockTracer::cCallbacks + public BlockTracerCallbacks { public: Vector3d m_Pos; @@ -62,7 +62,7 @@ public: } Callbacks; auto Start = a_Player->GetEyePosition() + a_Player->GetLookVector(); auto End = a_Player->GetEyePosition() + a_Player->GetLookVector() * 5; - cLineBlockTracer::Trace(*a_World, Callbacks, Start, End); + LineBlockTracer::Trace(*a_World, Callbacks, Start, End); if (!Callbacks.m_HasFound) { return false; |