mirror of
https://github.com/mt-mods/spacesuit.git
synced 2026-05-04 13:56:51 -06:00
Merge branch 'master' into timer
This commit is contained in:
+4
-2
@@ -29,8 +29,10 @@ minetest.register_globalstep(function(dtime)
|
|||||||
for i, stack in pairs(armor_inv:get_list("armor")) do
|
for i, stack in pairs(armor_inv:get_list("armor")) do
|
||||||
if not stack:is_empty() then
|
if not stack:is_empty() then
|
||||||
local name = stack:get_name()
|
local name = stack:get_name()
|
||||||
local use = minetest.get_item_group(name, "armor_use") * timer or 0
|
if name:sub(1, 10) == "spacesuit:" then
|
||||||
armor:damage(player, i, stack, use)
|
local use = minetest.get_item_group(name, "armor_use") * timer or 0
|
||||||
|
armor:damage(player, i, stack, use)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user