projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab43377
)
Fix itemstack:add item not working correct
737/head
author
sapier
<Sapier at GMX dot net>
Sat, 25 May 2013 17:23:10 +0000
(19:23 +0200)
committer
sapier
<Sapier at GMX dot net>
Sat, 25 May 2013 17:23:10 +0000
(19:23 +0200)
src/script/lua_api/l_item.cpp
patch
|
blob
|
history
diff --git
a/src/script/lua_api/l_item.cpp
b/src/script/lua_api/l_item.cpp
index e9997d489591e322167367844d18341232967196..730dfd49b0007d9de0f2c32f0c3e820aaa240f02 100644
(file)
--- a/
src/script/lua_api/l_item.cpp
+++ b/
src/script/lua_api/l_item.cpp
@@
-227,7
+227,7
@@
int LuaItemStack::l_add_item(lua_State *L)
NO_MAP_LOCK_REQUIRED;
LuaItemStack *o = checkobject(L, 1);
ItemStack &item = o->m_stack;
- ItemStack newitem = read_item(L,-
2
, STACK_TO_SERVER(L));
+ ItemStack newitem = read_item(L,-
1
, STACK_TO_SERVER(L));
ItemStack leftover = item.addItem(newitem, STACK_TO_SERVER(L)->idef());
create(L, leftover);
return 1;