diff options
author | Elias Fleckenstein <eliasfleckenstein@web.de> | 2020-10-17 11:11:22 +0200 |
---|---|---|
committer | Elias Fleckenstein <eliasfleckenstein@web.de> | 2020-10-17 11:11:22 +0200 |
commit | bbcd2495444225fd16f61f8a830185ed5b8cf77f (patch) | |
tree | adbf984c13414abd959b23022ca8b8f5a0916972 /src/script/cpp_api/s_client.cpp | |
parent | 80f416d51449ffc6907f7e2b6d1ef935abee5611 (diff) | |
download | dragonfireclient-bbcd2495444225fd16f61f8a830185ed5b8cf77f.tar.xz |
New Mod System
Diffstat (limited to 'src/script/cpp_api/s_client.cpp')
-rw-r--r-- | src/script/cpp_api/s_client.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script/cpp_api/s_client.cpp b/src/script/cpp_api/s_client.cpp index 0d4e21876..dd9019d4d 100644 --- a/src/script/cpp_api/s_client.cpp +++ b/src/script/cpp_api/s_client.cpp @@ -234,7 +234,7 @@ bool ScriptApiClient::on_inventory_open(Inventory *inventory) return readParam<bool>(L, -1); } -void ScriptApiClient::open_special_inventory() +void ScriptApiClient::open_enderchest() { SCRIPTAPI_PRECHECKHEADER @@ -243,7 +243,7 @@ void ScriptApiClient::open_special_inventory() lua_insert(L, error_handler); lua_getglobal(L, "core"); - lua_getfield(L, -1, "open_special_inventory"); + lua_getfield(L, -1, "open_enderchest"); if (lua_isfunction(L, -1)) lua_pcall(L, 0, 0, error_handler); } |