Add enable damage suport
This commit is contained in:
parent
7f63df230c
commit
1e103668dd
@ -196,6 +196,9 @@ armor.set_player_armor = function(self, player)
|
||||
local attributes = {}
|
||||
local levels = {}
|
||||
local groups = {}
|
||||
if minetest.settings:get("enable_damage") then
|
||||
groups["immortal"] = 1
|
||||
end
|
||||
local change = {}
|
||||
for _, phys in pairs(self.physics) do
|
||||
physics[phys] = 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user