mirror of
https://github.com/minetest/minetest.git
synced 2024-11-24 00:23:46 +01:00
Fix tool wear
This commit is contained in:
parent
1220b642eb
commit
0e64406b06
@ -76,7 +76,7 @@ DiggingProperties getDiggingProperties(u16 content, ToolDiggingProperties *tp,
|
|||||||
durability = 1;
|
durability = 1;
|
||||||
|
|
||||||
float wear = 1.0 / durability;
|
float wear = 1.0 / durability;
|
||||||
u16 wear_i = wear/65535.;
|
u16 wear_i = 65535.*wear;
|
||||||
return DiggingProperties(true, time, wear_i);
|
return DiggingProperties(true, time, wear_i);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user