aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-06-19 00:50:07 +0300
committerPerttu Ahola <celeron55@gmail.com>2012-06-19 00:50:07 +0300
commit02fb912a955c9e5baa86ecd4206eefaa88f3e60a (patch)
tree45c64ccfd81a690b3def13c02b04eeaacabe4362
parent48790c0751cb43d45ba5efb33557de8b213d6111 (diff)
downloadminetest-02fb912a955c9e5baa86ecd4206eefaa88f3e60a.tar.gz
minetest-02fb912a955c9e5baa86ecd4206eefaa88f3e60a.tar.bz2
minetest-02fb912a955c9e5baa86ecd4206eefaa88f3e60a.zip
Fix /builtin/misc.lua:47: attempt to call method 'is_player' (a nil value)
-rw-r--r--src/scriptapi.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/scriptapi.cpp b/src/scriptapi.cpp
index cf2a01c64..f06485458 100644
--- a/src/scriptapi.cpp
+++ b/src/scriptapi.cpp
@@ -2955,6 +2955,7 @@ const luaL_reg ObjectRef::methods[] = {
method(ObjectRef, get_entity_name),
method(ObjectRef, get_luaentity),
// Player-only
+ method(ObjectRef, is_player),
method(ObjectRef, get_player_name),
method(ObjectRef, get_look_dir),
method(ObjectRef, get_look_pitch),