conditional set_breath()

This commit is contained in:
Thomas Rudin
2018-05-28 15:19:28 +02:00
parent 6216cee5bd
commit 738506d0c4
+1 -1
View File
@@ -81,7 +81,7 @@ minetest.register_globalstep(function(dtime)
local has_pants = armor_inv:contains_item("armor", "spacesuit:pants") local has_pants = armor_inv:contains_item("armor", "spacesuit:pants")
local has_boots = armor_inv:contains_item("armor", "spacesuit:boots") local has_boots = armor_inv:contains_item("armor", "spacesuit:boots")
if has_helmet and has_chestplate and has_pants and has_boots then if has_helmet and has_chestplate and has_pants and has_boots and player:get_breath() < 10 then
player:set_breath(10) player:set_breath(10)
-- TODO: wear -- TODO: wear
end end