mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-16 18:05:10 +00:00
Remove old/incorrect code.
This commit is contained in:
parent
596d4ddc47
commit
3a3caf3885
1 changed files with 0 additions and 15 deletions
|
@ -288,21 +288,6 @@ minetest.register_on_player_hpchange(function(player, hp_change)
|
||||||
end, true)
|
end, true)
|
||||||
|
|
||||||
|
|
||||||
-- -- If a player is punched and is a weak player, damage by 2 additional hearts
|
|
||||||
-- minetest.register_on_player_hpchange(function(player, hp_change)
|
|
||||||
--
|
|
||||||
-- if is_weak[player] and hp_change < 0 then
|
|
||||||
--
|
|
||||||
-- -- prevent weakness from healing the victim
|
|
||||||
-- return math.min(hp_change - 4, 0)
|
|
||||||
--
|
|
||||||
-- else
|
|
||||||
-- return hp_change
|
|
||||||
-- end
|
|
||||||
--
|
|
||||||
-- end, true)
|
|
||||||
|
|
||||||
|
|
||||||
function mcl_potions._reset_player_effects(player)
|
function mcl_potions._reset_player_effects(player)
|
||||||
|
|
||||||
player = player or player:get_luaentity()
|
player = player or player:get_luaentity()
|
||||||
|
|
Loading…
Reference in a new issue