X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld%2Fchunk.cpp;h=a65f5c31d9b1d0081ab3204903b87cbe10bd562d;hb=955fbb45dedb570520fc45d2ce69f420bed2ad08;hp=2c5e7ec4ebad297570c5ef71fd2799822e5e30cc;hpb=32909aa3224ec0ed5656721178eb6ad31cd047df;p=blank.git diff --git a/src/world/chunk.cpp b/src/world/chunk.cpp index 2c5e7ec..a65f5c3 100644 --- a/src/world/chunk.cpp +++ b/src/world/chunk.cpp @@ -500,7 +500,7 @@ bool Chunk::Intersection( for (int y = 0; y < height; ++y) { for (int x = 0; x < width; ++x, ++idx) { const BlockType &type = Type(idx); - if (!type.visible) { + if (!type.collision) { continue; } if (type.shape->Intersects(Mchunk * ToTransform(Pos(x, y, z), idx), box, Mbox, penetration, normal)) {