mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-27 18:39:34 +01:00
fix crash :-/
I am stupid
This commit is contained in:
parent
f60941003d
commit
c70ea7c843
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue