mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 01:05:48 +01:00 
			
		
		
		
	Removed superfluous facedir check in mapblock_mesh.cpp
This commit is contained in:
		@@ -693,8 +693,7 @@ TileSpec getNodeTile(MapNode mn, v3s16 p, v3s16 dir, MeshMakeData *data)
 | 
			
		||||
 | 
			
		||||
	// Get rotation for things like chests
 | 
			
		||||
	u8 facedir = mn.getFaceDir(ndef);
 | 
			
		||||
	if (facedir > 23)
 | 
			
		||||
		facedir = 0;
 | 
			
		||||
 | 
			
		||||
	static const u16 dir_to_tile[24 * 16] =
 | 
			
		||||
	{
 | 
			
		||||
		// 0     +X    +Y    +Z           -Z    -Y    -X   ->   value=tile,rotation
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user