forked from mtcontrib/minetest_hbhunger
Ignore fake players from pipeworks mod
This commit is contained in:
parent
e4d74685f6
commit
bd343a1643
@ -438,7 +438,7 @@ end
|
|||||||
|
|
||||||
-- player-action based hunger changes
|
-- player-action based hunger changes
|
||||||
function hbhunger.handle_node_actions(pos, oldnode, player, ext)
|
function hbhunger.handle_node_actions(pos, oldnode, player, ext)
|
||||||
if not player or not player:is_player() then
|
if not player or not player:is_player() or player.is_fake_player == true then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
local name = player:get_player_name()
|
local name = player:get_player_name()
|
||||||
|
Loading…
Reference in New Issue
Block a user