mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-12-01 00:23:00 +00:00
Fix infinite hardness display
This commit is contained in:
parent
9a96b525ae
commit
6eca367d0e
1 changed files with 5 additions and 1 deletions
|
@ -83,7 +83,11 @@ doc.sub.items.register_factoid("nodes", "mining", function(itemstring, def)
|
|||
if not hardness then
|
||||
hardness = 0
|
||||
end
|
||||
return string.format("Hardness: %.2f", hardness)
|
||||
if hardness == -1 then
|
||||
return "Hardness: ∞"
|
||||
else
|
||||
return string.format("Hardness: %.2f", hardness)
|
||||
end
|
||||
end)
|
||||
|
||||
-- TODO: Blast resistance (omitted for now because explosions ignore hardness)
|
||||
|
|
Loading…
Reference in a new issue