mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 09:15:29 +01:00 
			
		
		
		
	Fix tool wear
This commit is contained in:
		@@ -76,7 +76,7 @@ DiggingProperties getDiggingProperties(u16 content, ToolDiggingProperties *tp,
 | 
			
		||||
		durability = 1;
 | 
			
		||||
 | 
			
		||||
	float wear = 1.0 / durability;
 | 
			
		||||
	u16 wear_i = wear/65535.;
 | 
			
		||||
	u16 wear_i = 65535.*wear;
 | 
			
		||||
	return DiggingProperties(true, time, wear_i);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user