fix inventory.* functions error messages

This commit is contained in:
MihailRis 2025-06-30 21:27:49 +03:00
parent 7c976a573b
commit af3c315c04

View File

@ -232,9 +232,9 @@ static int l_set_data(lua::State* L, ItemStack& stack) {
}
const luaL_Reg inventorylib[] = {
{"get", wrap_slot<l_get>},
{"set", wrap_slot<l_set>},
{"set_count", wrap_slot<l_set_count>},
{"get", lua::wrap<wrap_slot<l_get>>},
{"set", lua::wrap<wrap_slot<l_set>>},
{"set_count", lua::wrap<wrap_slot<l_set_count>>},
{"size", lua::wrap<l_size>},
{"add", lua::wrap<l_add>},
{"move", lua::wrap<l_move>},
@ -243,10 +243,10 @@ const luaL_Reg inventorylib[] = {
{"get_block", lua::wrap<l_get_block>},
{"bind_block", lua::wrap<l_bind_block>},
{"unbind_block", lua::wrap<l_unbind_block>},
{"get_data", wrap_slot<l_get_data>},
{"set_data", wrap_slot<l_set_data>},
{"get_all_data", wrap_slot<l_get_all_data>},
{"has_data", wrap_slot<l_has_data>},
{"get_data", lua::wrap<wrap_slot<l_get_data>>},
{"set_data", lua::wrap<wrap_slot<l_set_data>>},
{"get_all_data", lua::wrap<wrap_slot<l_get_all_data>>},
{"has_data", lua::wrap<wrap_slot<l_has_data>>},
{"create", lua::wrap<l_create>},
{"remove", lua::wrap<l_remove>},
{"clone", lua::wrap<l_clone>},