perks: Fix undefined variable access
commitcd3c598f254557d80c0adb7421b9078dcc653bf1
authorAuke Kok <sofar@foo-projects.org>
Tue, 17 Dec 2019 18:55:33 +0000 (17 10:55 -0800)
committerAuke Kok <sofar@foo-projects.org>
Tue, 17 Dec 2019 18:55:33 +0000 (17 10:55 -0800)
tree34fd2b2b5f448d5aa70922b1489022583cab8539
parent7ea209215c97bea6176f787d99b03facd04fab3d
perks: Fix undefined variable access

Instead of ANAND's suggestion to put this function in the `player` API,
I feel it belongs in the `boxes` API instead, other than that it's
mostly similar to his MR#18.
mods/boxes/init.lua
mods/boxes/nodes.lua
mods/perks/init.lua