Add enable damage suport

master
Yiu Man Ho 2020-09-25 20:21:55 +08:00
parent 7f63df230c
commit 1e103668dd
No known key found for this signature in database
GPG Key ID: 7939838BC85BF618
1 changed files with 3 additions and 0 deletions

View File

@ -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