mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 01:05:48 +01:00 
			
		
		
		
	LuaPerlinNoiseMap: Fix 3d noise safety check
This commit is contained in:
		@@ -253,7 +253,7 @@ int LuaPerlinNoiseMap::l_get3dMap_flat(lua_State *L)
 | 
			
		||||
 | 
			
		||||
LuaPerlinNoiseMap::LuaPerlinNoiseMap(NoiseParams *params, int seed, v3s16 size)
 | 
			
		||||
{
 | 
			
		||||
	m_is3d = size.Z <= 1;
 | 
			
		||||
	m_is3d = size.Z > 1;
 | 
			
		||||
	np = *params;
 | 
			
		||||
	try {
 | 
			
		||||
		noise = new Noise(&np, seed, size.X, size.Y, size.Z);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user