mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 20:11:50 +00:00
optimize collisions calculations (remove the stupid)
This commit is contained in:
parent
49aa7cdfba
commit
b0d231c927
9 changed files with 134 additions and 103 deletions
|
|
@ -173,7 +173,7 @@ void WorldGenerator::placeStructure(
|
|||
}
|
||||
auto& otherPrototype = *found->second;
|
||||
auto chunkAABB = gen_chunk_aabb(chunkX + lcx, chunkZ + lcz);
|
||||
if (chunkAABB.intersect(aabb)) {
|
||||
if (chunkAABB.intersects(aabb)) {
|
||||
otherPrototype.placements.emplace_back(
|
||||
priority,
|
||||
StructurePlacement {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue