projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48790c0
)
Fix /builtin/misc.lua:47: attempt to call method 'is_player' (a nil value)
author
Perttu Ahola
<celeron55@gmail.com>
Mon, 18 Jun 2012 21:50:07 +0000
(
00:50
+0300)
committer
Perttu Ahola
<celeron55@gmail.com>
Mon, 18 Jun 2012 21:50:07 +0000
(
00:50
+0300)
src/scriptapi.cpp
patch
|
blob
|
history
diff --git
a/src/scriptapi.cpp
b/src/scriptapi.cpp
index cf2a01c64bf073fe8fd49a26987f895c37ee14cd..f0648545881c0a39f39621fa542c44d73790c1d5 100644
(file)
--- 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),