From: Perttu Ahola Date: Mon, 18 Jun 2012 21:50:07 +0000 (+0300) Subject: Fix /builtin/misc.lua:47: attempt to call method 'is_player' (a nil value) X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=02fb912a955c9e5baa86ecd4206eefaa88f3e60a;p=zefram%2Fminetest%2Fminetest_engine.git Fix /builtin/misc.lua:47: attempt to call method 'is_player' (a nil value) --- diff --git a/src/scriptapi.cpp b/src/scriptapi.cpp index cf2a01c6..f0648545 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),