Document nil player as being allowed for can_dig
authorShadowNinja <shadowninja@minetest.net>
Fri, 27 Mar 2015 19:11:28 +0000 (15:11 -0400)
committerShadowNinja <shadowninja@minetest.net>
Fri, 27 Mar 2015 19:11:28 +0000 (15:11 -0400)
doc/lua_api.txt

index bd85f0da51c68d71a81f4e7e3cbac0fd2ff951d2..1431181f172e633b0bbd437593595957e2f6958d 100644 (file)
@@ -3023,7 +3023,7 @@ Definition tables
         ^ Called after destructing node when node was dug using
           minetest.node_dig / minetest.dig_node
         ^ default: nil ]]
-        can_dig = function(pos,player) --[[
+        can_dig = function(pos, [player]) --[[
         ^ returns true if node can be dug, or false if not
         ^ default: nil ]]