]> git.localhorst.tv Git - blank.git/blobdiff - src/world/WorldCollision.hpp
fix block placement
[blank.git] / src / world / WorldCollision.hpp
index 3c81595b714d9bd94104048633950a98da9a4a1a..dd3f332c8f94854c405a02ccb8803a62e4fe179c 100644 (file)
@@ -35,7 +35,7 @@ struct WorldCollision {
 
        bool Blocks() const noexcept { return chunk->Type(block).collide_block; }
 
-       glm::vec3 BlockPos() const noexcept { return Chunk::ToPos(block); }
+       glm::ivec3 BlockPos() const noexcept { return Chunk::ToPos(block); }
        glm::vec3 BlockCoords() const noexcept { return Chunk::ToCoords(block); }
        glm::mat4 BlockTransform() const noexcept { return GetChunk().ToTransform(BlockPos(), block); }