mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-30 19:22:14 +00:00
Mapgen: Correct border block criteria
* servermap.cpp (ServerMap::finishBlockMake): Don't compare
vectors with a total order function.
This addresses a regression from e86d2fea8
.
This commit is contained in:
parent
421835a30e
commit
f69bbd1204
1 changed files with 3 additions and 1 deletions
|
@ -339,7 +339,9 @@ void ServerMap::finishBlockMake(BlockMakeData *data,
|
||||||
|
|
||||||
/* Border blocks are grabbed during
|
/* Border blocks are grabbed during
|
||||||
generation but mustn't be marked generated. */
|
generation but mustn't be marked generated. */
|
||||||
if (bp >= bpmin && bp <= bpmax) {
|
if (bp.X >= bpmin.X && bp.X <= bpmax.X
|
||||||
|
&& bp.Y >= bpmin.Y && bp.Y <= bpmax.Y
|
||||||
|
&& bp.Z >= bpmin.Z && bp.Z <= bpmax.Z) {
|
||||||
block->setGenerated(true);
|
block->setGenerated(true);
|
||||||
// Set timestamp to ensure correct application
|
// Set timestamp to ensure correct application
|
||||||
// of LBMs and other stuff.
|
// of LBMs and other stuff.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue