summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-10-29 20:42:09 +0200
committerWuzzy <almikes@aol.com>2016-10-29 20:42:09 +0200
commitbd343a1643ed86bc8f7109eb24c258b5eed8a2d3 (patch)
treefc34c83a7e4ae619f41c1605d044d9192a12f3f4
parente4d74685f61fba3ed6cf0a2f8e6c759334e5ecf8 (diff)
Ignore fake players from pipeworks mod
-rw-r--r--hunger.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/hunger.lua b/hunger.lua
index 62c32eb..804393c 100644
--- a/hunger.lua
+++ b/hunger.lua
@@ -438,7 +438,7 @@ end
-- player-action based hunger changes
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
end
local name = player:get_player_name()