From 086942329e63b6dba0c7a12dd04223508d85ebc9 Mon Sep 17 00:00:00 2001 From: crabman77 Date: Mon, 27 Jul 2015 15:53:30 +0200 Subject: [PATCH] detach the player when punch mobs, anit usebug, immortal if attached --- mods/mobs/api.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/mods/mobs/api.lua b/mods/mobs/api.lua index 36e4836a..94b3321a 100755 --- a/mods/mobs/api.lua +++ b/mods/mobs/api.lua @@ -1133,6 +1133,7 @@ end on_punch = function(self, hitter, tflp, tool_capabilities, dir) -- weapon wear + hitter:set_detach() --MFF (crabman|27/7/2015) anti usebug, immortal if attached local weapon = hitter:get_wielded_item() if weapon:get_definition().tool_capabilities ~= nil then local wear = ( (weapon:get_definition().tool_capabilities.full_punch_interval or 1.4) / 75 ) * 9000