Only fatal punch triggers jail.

master
root 2016-02-21 14:27:26 +02:00
parent 2d0cecb728
commit a7161036a0
3 changed files with 509 additions and 509 deletions

View File

@ -131,7 +131,7 @@ if minetest.register_on_punchplayer then --new way of finding attackers, not
city_block.attack[pname] = t;
local hp = player:get_hp();
if (hp - damage) <= 0 then -- player will die
if hp > 0 and (hp - damage) <= 0 then -- player will die because of this hit
local pos = player:getpos()
if city_block:in_city(pos) then