Verify object is player before checking privs (#2448)
authorcoil <51716565+coil0@users.noreply.github.com>
Mon, 19 Aug 2019 17:24:19 +0000 (13:24 -0400)
committerSmallJoker <SmallJoker@users.noreply.github.com>
Mon, 19 Aug 2019 17:24:19 +0000 (19:24 +0200)
commit3a3f71aa50c7ef5d894d1f1e0760f164654bbeb7
tree5ae74c75513c51f0784fdde340adcb9c9818883b
parentfac8f390b165da971b9b6c1b8d29088bb59c38bc
Verify object is player before checking privs (#2448)

This prevents a crash when a 'nil' digger is passed by the engine to
minetest.node_dig.
mods/default/functions.lua