summaryrefslogtreecommitdiffstats
path: root/src/World.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/World.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/World.cpp b/src/World.cpp
index c3246dc..e5e3fe8 100644
--- a/src/World.cpp
+++ b/src/World.cpp
@@ -201,7 +201,7 @@ void World::UpdatePhysics(float delta) {
BlockId block = this->GetBlockId(Vector(x, y, z));
if (block.id == 0 || !GetBlockInfo(block).collides)
continue;
- AABB blockColl{ x,y,z,1.0,1.0,1.0 };
+ AABB blockColl{ (double)x,(double)y,(double)z,1.0,1.0,1.0 };
if (TestCollision(entityCollBox, blockColl)) {
return { true };
}