Page 1 of 1

position datatype error

PostPosted: Tue Nov 13, 2012 21:49
by luciferleftwing
trying to use the function minetest.env.punch_node i do always get this error
bad argument #1 to 'punch_node' (userdata expected, got table)

using the same variable in for example minetest.node_punch doesn't create problems i fail to understand my mistake :P

PostPosted: Wed Nov 14, 2012 07:39
by Zeg9
It is minetest.env:punch_node (with :, not a .) I think.
I had the same error :D

PostPosted: Thu Nov 15, 2012 06:13
by luciferleftwing
thanks