forked from MineClone5/MineClone5
parent
f60941003d
commit
c70ea7c843
|
@ -53,7 +53,7 @@ local deal_falling_damage = function(self, dtime)
|
|||
local helmet = inv:get_stack("armor", 2)
|
||||
if has_mcl_armor and not helmet:is_empty() then
|
||||
hp = hp/4*3
|
||||
if not his_creative_enabled(name) then
|
||||
if not is_creative_enabled(name) then
|
||||
helmet:add_wear(65535/helmet:get_definition().groups.mcl_armor_uses) --TODO: be sure damage is exactly like mc (informations are missing in the mc wiki)
|
||||
inv:set_stack("armor", 2, helmet)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue