Skip to content

Commit

Permalink
complete fix for famous issue 13, fix mobs damage armor vs hitter
Browse files Browse the repository at this point in the history
* hitter was assumed a player so this complete the commit efb3367
* complete fix for Armor still damageable in (pvp) protected area
* check minetest-mods#13 on pvp
* backported fix Minor improvement to fix minetest-mods#13
  • Loading branch information
mckaygerhard committed Jan 9, 2022
1 parent b7dd1ac commit e2e4963
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 3d_armor/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ if armor.config.punch_damage == true then
minetest.register_on_punchplayer(function(player, hitter,
time_from_last_punch, tool_capabilities)
local name = player:get_player_name()
local tplayer = minetest.get_player_by_name(name)
local tplayer = hitter:is_player()
if name and tplayer and minetest.is_protected(player:get_pos(), "") then
return
elseif name then
Expand Down

0 comments on commit e2e4963

Please sign in to comment.