mirror of
				https://github.com/FaceDeer/dfcaverns.git
				synced 2025-11-04 10:05:29 +01:00 
			
		
		
		
	now that bubblesponge overwriting is fixed, move them back above the surface of the sand.
This commit is contained in:
		@@ -124,8 +124,8 @@ df_caverns.flooded_cavern_floor = function(abs_cracks, vert_rand, vi, area, data
 | 
			
		||||
		if c_bubblesponge and abs_cracks > 0.5 and math.random() < 0.01 then
 | 
			
		||||
			local vi_above = vi + ystride
 | 
			
		||||
			if data[vi_above] == c_water then
 | 
			
		||||
				data[vi] = c_bubblesponge
 | 
			
		||||
				minetest.get_node_timer(area:position(vi)):set(1, bubblesponge.config.growth_seconds * 6) -- immediate growth
 | 
			
		||||
				data[vi_above] = c_bubblesponge
 | 
			
		||||
				minetest.get_node_timer(area:position(vi_above)):set(1, bubblesponge.config.growth_seconds * 6) -- immediate growth
 | 
			
		||||
				if log_location then log_location("flooded_bubblesponge", area:position(vi_above)) end
 | 
			
		||||
			end
 | 
			
		||||
		else
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user