merge fix

This commit is contained in:
proller committed 2025-11-25 03:29:23 +01:00
1 parent 44f17e4336
commit 5da41206bc
2 files changed
+7 -1

No files matched your search

+4
View File
@@ -763,3 +763,7 @@ std::string analyze_block(MapBlock *block);
using MapBlockPtr = std::shared_ptr<MapBlock>;
// using MapBlockPtr = MapBlock *;
inline std::string analyze_block(const MapBlockPtr &block)
{
return analyze_block(block.get());
};
+3 -1
View File
@@ -374,7 +374,9 @@ void ServerMap::finishBlockMake(BlockMakeData *data,
/* Border blocks are grabbed during
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);
// Set timestamp to ensure correct application
// of LBMs and other stuff.