diff options
author | Mattes D <github@xoft.cz> | 2016-06-12 18:24:01 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2016-06-27 20:51:52 +0200 |
commit | 7a6670d1d110be96ed73ccab4f33c69e4a01f28d (patch) | |
tree | d85a6aa0d3c01d730d47c3b0306ea837c9704b4c /src/Bindings/LuaState.h | |
parent | cPluginManager: Use a callback for command handler registration. (diff) | |
download | cuberite-7a6670d1d110be96ed73ccab4f33c69e4a01f28d.tar cuberite-7a6670d1d110be96ed73ccab4f33c69e4a01f28d.tar.gz cuberite-7a6670d1d110be96ed73ccab4f33c69e4a01f28d.tar.bz2 cuberite-7a6670d1d110be96ed73ccab4f33c69e4a01f28d.tar.lz cuberite-7a6670d1d110be96ed73ccab4f33c69e4a01f28d.tar.xz cuberite-7a6670d1d110be96ed73ccab4f33c69e4a01f28d.tar.zst cuberite-7a6670d1d110be96ed73ccab4f33c69e4a01f28d.zip |
Diffstat (limited to 'src/Bindings/LuaState.h')
-rw-r--r-- | src/Bindings/LuaState.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/Bindings/LuaState.h b/src/Bindings/LuaState.h index 88313f9fb..d3acb2797 100644 --- a/src/Bindings/LuaState.h +++ b/src/Bindings/LuaState.h @@ -640,18 +640,10 @@ protected: */ bool PushFunction(const char * a_FunctionName); - /** Pushes a function that has been saved into the global registry, identified by a_FnRef. - Returns true if successful. Logs a warning on failure - */ - bool PushFunction(int a_FnRef); - /** Pushes a function that has been saved as a reference. Returns true if successful. Logs a warning on failure */ - bool PushFunction(const cRef & a_FnRef) - { - return PushFunction(static_cast<int>(a_FnRef)); - } + bool PushFunction(const cRef & a_FnRef); /** Pushes a function that is stored in a referenced table by name Returns true if successful. Logs a warning on failure |