fix inventory.* functions error messages
This commit is contained in:
parent
7c976a573b
commit
af3c315c04
@ -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>},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user