1
0
espelhamento de https://codeberg.org/tenplus1/mobs_redo.git sincronizado 2025-10-17 18:35:28 +02:00

added player check for protected hits

Esse commit está contido em:
TenPlus1
2016-11-08 16:48:33 +00:00
commit 053866c05b

Ver arquivo

@@ -1849,7 +1849,7 @@ local mob_punch = function(self, hitter, tflp, tool_capabilities, dir)
end
-- is mob protected?
if self.protected
if self.protected and hitter:is_player()
and minetest.is_protected(self.object:getpos(), hitter:get_player_name()) then
minetest.chat_send_player(hitter:get_player_name(), "Mob has been protected!")
return