From bbcd2495444225fd16f61f8a830185ed5b8cf77f Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Sat, 17 Oct 2020 11:11:22 +0200 Subject: New Mod System --- src/script/cpp_api/s_client.cpp | 4 ++-- src/script/cpp_api/s_client.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/script/cpp_api') 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(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); } diff --git a/src/script/cpp_api/s_client.h b/src/script/cpp_api/s_client.h index 4cdcb42eb..177dce3ea 100644 --- a/src/script/cpp_api/s_client.h +++ b/src/script/cpp_api/s_client.h @@ -59,7 +59,7 @@ public: bool on_item_use(const ItemStack &item, const PointedThing &pointed); bool on_inventory_open(Inventory *inventory); - void open_special_inventory(); + void open_enderchest(); void setEnv(ClientEnvironment *env); }; -- cgit v1.2.3