Empty buckets replace fluid buckets on use and vice versa (patch contributed by Mgueydan)
Fixes FS #277. API change: added an optional parameter to cItemGrid:AddItem(), cItemGrid:AddItems(), cInventory:AddItem() and cInventory:AddItems() git-svn-id: http://mc-server.googlecode.com/svn/trunk@1643 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
+2
-2
@@ -12978,7 +12978,7 @@ static int tolua_AllToLua_cInventory_AddItems00(lua_State* tolua_S)
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'AddItems'", NULL);
|
||||
#endif
|
||||
{
|
||||
int tolua_ret = (int) self->AddItems(*a_ItemStackList,a_AllowNewStacks);
|
||||
int tolua_ret = (int) self->AddItems(*a_ItemStackList,a_AllowNewStacks,false);
|
||||
tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
|
||||
}
|
||||
}
|
||||
@@ -15821,7 +15821,7 @@ static int tolua_AllToLua_cItemGrid_AddItem00(lua_State* tolua_S)
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'AddItem'", NULL);
|
||||
#endif
|
||||
{
|
||||
int tolua_ret = (int) self->AddItem(*a_ItemStack,a_AllowNewStacks);
|
||||
int tolua_ret = (int) self->AddItem(*a_ItemStack,a_AllowNewStacks, false);
|
||||
tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user