summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2021-06-07 11:11:41 +0200
committerTiger Wang <ziwei.tiger@outlook.com>2021-06-28 22:54:21 +0200
commit8b62245dfbcb610fd1aead1889c349afc0db8e97 (patch)
treef77e8eebe2727dbb00aa86406deb08d19211b7e8 /src
parentRemove orphaned API symbols (diff)
downloadcuberite-8b62245dfbcb610fd1aead1889c349afc0db8e97.tar
cuberite-8b62245dfbcb610fd1aead1889c349afc0db8e97.tar.gz
cuberite-8b62245dfbcb610fd1aead1889c349afc0db8e97.tar.bz2
cuberite-8b62245dfbcb610fd1aead1889c349afc0db8e97.tar.lz
cuberite-8b62245dfbcb610fd1aead1889c349afc0db8e97.tar.xz
cuberite-8b62245dfbcb610fd1aead1889c349afc0db8e97.tar.zst
cuberite-8b62245dfbcb610fd1aead1889c349afc0db8e97.zip
Diffstat (limited to 'src')
-rw-r--r--src/Bindings/PluginLua.cpp2
-rw-r--r--src/Bindings/PluginLua.h1
2 files changed, 0 insertions, 3 deletions
diff --git a/src/Bindings/PluginLua.cpp b/src/Bindings/PluginLua.cpp
index 887e6d699..5e29319ca 100644
--- a/src/Bindings/PluginLua.cpp
+++ b/src/Bindings/PluginLua.cpp
@@ -87,8 +87,6 @@ bool cPluginLua::Load(void)
// Inject the identification global variables into the state:
lua_pushlightuserdata(m_LuaState, this);
lua_setglobal(m_LuaState, LUA_PLUGIN_INSTANCE_VAR_NAME);
- lua_pushstring(m_LuaState, GetName().c_str());
- lua_setglobal(m_LuaState, LUA_PLUGIN_NAME_VAR_NAME);
// Add the plugin's folder to the package.path and package.cpath variables (#693):
m_LuaState.AddPackagePath("path", GetLocalFolder() + "/?.lua");
diff --git a/src/Bindings/PluginLua.h b/src/Bindings/PluginLua.h
index c3064450f..6c59bbe1b 100644
--- a/src/Bindings/PluginLua.h
+++ b/src/Bindings/PluginLua.h
@@ -13,7 +13,6 @@
#include "LuaState.h"
// Names for the global variables through which the plugin is identified in its LuaState
-#define LUA_PLUGIN_NAME_VAR_NAME "_CuberiteInternal_PluginName"
#define LUA_PLUGIN_INSTANCE_VAR_NAME "_CuberiteInternal_PluginInstance"