5.x only
This commit is contained in:
parent
be6a63eb5c
commit
3777c94219
@ -1,5 +0,0 @@
|
||||
default?
|
||||
3d_armor?
|
||||
player_monoids?
|
||||
pova?
|
||||
lucky_block?
|
@ -1 +0,0 @@
|
||||
Add speed effects, suffocation and cactus damage to players.
|
7
init.lua
7
init.lua
@ -210,7 +210,7 @@ if name and playerplus[name] then
|
||||
and not minetest.check_player_privs(name, {noclip = true}) then
|
||||
|
||||
if player:get_hp() > 0 then
|
||||
player:set_hp(player:get_hp() - 2)
|
||||
player:set_hp(player:get_hp() - 2, {suffocation = true})
|
||||
end
|
||||
end
|
||||
|
||||
@ -269,8 +269,6 @@ minetest.register_privilege("no_knockback", {
|
||||
-- is player knock-back effect enabled?
|
||||
if minetest.settings:get_bool("player_knockback") == true then
|
||||
|
||||
local is_50 = minetest.get_modpath("player_api")
|
||||
|
||||
-- player knock-back function
|
||||
local punchy = function(
|
||||
player, hitter, time_from_last_punch, tool_capabilities, dir, damage)
|
||||
@ -278,8 +276,7 @@ local punchy = function(
|
||||
local name = player:get_player_name()
|
||||
|
||||
-- is player attached to anything (mob, bed, boat etc.)
|
||||
if is_50 and player_api.player_attached[name]
|
||||
or default.player_attached[name] then
|
||||
if player_api.player_attached[name] then
|
||||
return
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user