mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 09:15:29 +01:00 
			
		
		
		
	Mapgen: Correct border block criteria (#16524)
This addresses a regression from e86d2fea8.
Co-authored-by: Po Lu <luangruo@yahoo.com>
			
			
This commit is contained in:
		@@ -339,7 +339,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.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user