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 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/script/cpp_api/s_client.cpp') 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); } -- cgit v1.2.3